From 58b0159e87f778819b6045ae5a099fa06b4f1a72 Mon Sep 17 00:00:00 2001 From: BlueTeck Date: Sun, 29 Mar 2015 12:48:24 +0200 Subject: add activity stream to task #693 --- app/Controller/Task.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'app/Controller') diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 64017582..9bd6e711 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -84,6 +84,22 @@ class Task extends Base ))); } + /** + * Display task activities + * + * @access public + */ + public function activites() + { + $task = $this->getTask(); + $this->response->html($this->taskLayout('task/events', array( + 'title' => $task['title'], + 'task' => $task, + 'ajax' => $this->request->isAjax(), + 'events' => $this->projectActivity->getTasks([$task['id']]), + ))); + } + /** * Display a form to create a new task * -- cgit v1.2.3