summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Task.php16
1 files changed, 16 insertions, 0 deletions
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
@@ -85,6 +85,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
*
* @access public