diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-04 11:14:21 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-04 11:14:21 -0400 |
commit | 554500aa493faa66b43b2ddce72338880a874724 (patch) | |
tree | 73066cfbe6af3cabf81b5be1dc5ef81e44792a21 /app/Controller/Activity.php | |
parent | a327f790ee036664439bf50e00c95fb8a0e1f97e (diff) |
Refactoring to implement new layout with filters: board/calendar/list views (work in progress)
Diffstat (limited to 'app/Controller/Activity.php')
-rw-r--r-- | app/Controller/Activity.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/Controller/Activity.php b/app/Controller/Activity.php new file mode 100644 index 00000000..2276b3b8 --- /dev/null +++ b/app/Controller/Activity.php @@ -0,0 +1,29 @@ +<?php + +namespace Controller; + +/** + * Activity stream + * + * @package controller + * @author Frederic Guillot + */ +class Activity extends Base +{ + /** + * Activity page for a project + * + * @access public + */ + public function project() + { + $project = $this->getProject(); + + $this->response->html($this->template->layout('activity/project', array( + 'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()), + 'events' => $this->projectActivity->getProject($project['id']), + 'project' => $project, + 'title' => t('%s\'s activity', $project['name']) + ))); + } +} |