Added a project home.

This commit is contained in:
Loic d'Anterroches
2008-07-29 21:18:02 +02:00
parent ccf24df131
commit c50e218704
4 changed files with 48 additions and 2 deletions

View File

@@ -31,6 +31,23 @@ Pluf::loadFunction('Pluf_Shortcuts_GetFormForModel');
*/
class IDF_Views_Project
{
/**
* Home page of a project.
*/
public function home($request, $match)
{
$prj = $request->project;
$team = $prj->getMembershipData();
$title = (string) $prj;
return Pluf_Shortcuts_RenderToResponse('project-home.html',
array(
'page_title' => $title,
'team' => $team,
),
$request);
}
/**
* Administrate the summary of a project.
*/