Added the featured documentation pages on the homepage.

This commit is contained in:
Loic d'Anterroches
2008-11-23 14:51:47 +01:00
parent b7b7e7aff2
commit 39916d46f0
2 changed files with 13 additions and 0 deletions

View File

@@ -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);
}