Start to implement task history and project activity

This commit is contained in:
Frédéric Guillot
2014-09-09 20:39:45 +02:00
parent ef95c7c284
commit 9bde377bbe
29 changed files with 644 additions and 45 deletions

View File

@@ -406,6 +406,23 @@ class Project extends Base
$this->response->redirect('?controller=project&action=show&project_id='.$project_id);
}
/**
* Activity page for a project
*
* @access public
*/
public function activity()
{
$project = $this->getProject();
$this->response->html($this->template->layout('project_activity', array(
'events' => $this->project->getActivity($project['id']),
'menu' => 'projects',
'project' => $project,
'title' => t('%s\'s activity', $project['name'])
)));
}
/**
* Task search for a given project
*