Added the featured documentation pages on the homepage.
This commit is contained in:
parent
b7b7e7aff2
commit
39916d46f0
@ -46,11 +46,17 @@ class IDF_Views_Project
|
||||
// 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);
|
||||
}
|
||||
|
@ -17,6 +17,13 @@
|
||||
{/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 />
|
||||
|
Loading…
Reference in New Issue
Block a user