summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-30 21:38:23 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-30 21:38:23 -0400
commit6d80f0b466c2be6f2127f6e6124c3d4e21be38d3 (patch)
treea6b6ddb0f089b5b3d35e12cd8dbd721058078788 /app/Controller
parent01f9ee3410bb4f6878033b353f5a0731397632d0 (diff)
parent58b0159e87f778819b6045ae5a099fa06b4f1a72 (diff)
Merge pull-request #746
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