summaryrefslogtreecommitdiff
path: root/app/Controller/Task.php
diff options
context:
space:
mode:
authorBlueTeck <tili2@gmx.de>2015-03-29 12:48:24 +0200
committerBlueTeck <tili2@gmx.de>2015-03-29 12:48:24 +0200
commit58b0159e87f778819b6045ae5a099fa06b4f1a72 (patch)
treeb0f1811c2ed869710baed246177f9f0a89548411 /app/Controller/Task.php
parent5536f6c6ce591ba05a169d2e33b6fb240378d8a4 (diff)
add activity stream to task #693
Diffstat (limited to 'app/Controller/Task.php')
-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