Indefero

Indefero Commit Details

Date:2008-11-23 14:51:47 (5 years 10 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:39916d46f026622407441e7e1e6363132477afc9
Parents: b7b7e7aff27296656db1b7b13a058a6135b8b4ab
Message:Added the featured documentation pages on the homepage.

Changes:
Msrc/IDF/Views/Project.php (1 diff)
Msrc/IDF/templates/idf/project/home.html (1 diff)

File differences

src/IDF/Views/Project.php
4646
4747
4848
49
50
51
52
53
4954
5055
5156
5257
5358
59
5460
5561
5662
// the first tag is the featured, the last is the deprecated.
$downloads = $tags[0]->get_idf_upload_list();
}
$pages = array();
if ($request->rights['hasWikiAccess']) {
$tags = IDF_Views_Wiki::getWikiTags($prj);
$pages = $tags[0]->get_idf_wikipage_list();
}
return Pluf_Shortcuts_RenderToResponse('idf/project/home.html',
array(
'page_title' => $title,
'team' => $team,
'downloads' => $downloads,
'pages' => $pages,
),
$request);
}
src/IDF/templates/idf/project/home.html
1717
1818
1919
20
21
22
23
24
25
26
2027
2128
2229
{/foreach}
<span class="label"> </span><span class="note"><a href="{url 'IDF_Views_Download::index', array($project.shortname)}">{trans 'show more...'}</a></span>
{/if}
{if count($pages) > 0}
<p><strong>{trans 'Featured Documentation'}</strong><br />
{foreach $pages as $page}
<span class="label"><a href="{url 'IDF_Views_Wiki::view', array($project.shortname, $page.title)}" title="{$page.summary}">{$page.title}</a></span><br />
{/foreach}
<span class="label"> </span><span class="note"><a href="{url 'IDF_Views_Wiki::index', array($project.shortname)}">{trans 'show more...'}</a></span>
{/if}
{assign $ko = 'owners'}
{assign $km = 'members'}
<p><strong>{trans 'Development Team'}</strong><br />

Archive Download the corresponding diff file