summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectOverview.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-16 17:28:11 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-16 17:28:11 -0500
commit5bbc903dcab12dcf53abc40bf67c2cd7898e0420 (patch)
tree9dfe65b5837ca42c6a9352b738dcc381151fbb19 /app/Controller/ProjectOverview.php
parent5272a7a980ed192a87d2319a51c8185670f62141 (diff)
Start to implement a project overview page
Diffstat (limited to 'app/Controller/ProjectOverview.php')
-rw-r--r--app/Controller/ProjectOverview.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/Controller/ProjectOverview.php b/app/Controller/ProjectOverview.php
new file mode 100644
index 00000000..cbd65777
--- /dev/null
+++ b/app/Controller/ProjectOverview.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Kanboard\Controller;
+
+/**
+ * Project Overview Controller
+ *
+ * @package controller
+ * @author Frederic Guillot
+ */
+class ProjectOverview extends Base
+{
+ /**
+ * Show project overview
+ */
+ public function show()
+ {
+ $params = $this->getProjectFilters('ProjectOverview', 'show');
+ $params['users'] = $this->projectUserRole->getAllUsersGroupedByRole($params['project']['id']);
+ $params['roles'] = $this->role->getProjectRoles();
+ $params['events'] = $this->projectActivity->getProject($params['project']['id'], 10);
+
+ $this->project->getColumnStats($params['project']);
+
+ $this->response->html($this->helper->layout->app('project_overview/show', $params));
+ }
+}