Fixed issue 8, show the featured downloads on the homepage.

This commit is contained in:
Loic d'Anterroches
2008-08-05 20:33:43 +02:00
parent 884a41fbba
commit 64f41c0cd2
4 changed files with 26 additions and 1 deletions

View File

@@ -39,10 +39,14 @@ class IDF_Views_Project
$prj = $request->project;
$team = $prj->getMembershipData();
$title = (string) $prj;
$tags = IDF_Views_Download::getDownloadTags($prj);
// the first tag is the featured, the last is the deprecated.
$downloads = $tags[0]->get_idf_upload_list();
return Pluf_Shortcuts_RenderToResponse('project-home.html',
array(
'page_title' => $title,
'team' => $team,
'downloads' => $downloads,
),
$request);
}