diff options
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Base.php | 2 | ||||
-rw-r--r-- | app/Controller/Project.php | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 2d7b0c18..4f920ab0 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -27,6 +27,7 @@ use Model\LastLogin; * @property \Model\Project $project * @property \Model\SubTask $subTask * @property \Model\Task $task + * @property \Model\TaskHistory $taskHistory * @property \Model\User $user * @property \Model\Webhook $webhook */ @@ -134,6 +135,7 @@ abstract class Base $this->project->attachEvents(); $this->webhook->attachEvents(); $this->notification->attachEvents(); + $this->taskHistory->attachEvents(); } /** diff --git a/app/Controller/Project.php b/app/Controller/Project.php index deca7e1a..26b241b9 100644 --- a/app/Controller/Project.php +++ b/app/Controller/Project.php @@ -407,6 +407,23 @@ class Project extends Base } /** + * 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 * * @access public |