summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectOverviewController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 13:41:54 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 13:41:54 -0400
commit1353929a7dbd3f2e897fa7d3ab88e959ca573f9f (patch)
tree30bdbac4e466e74c3dfb4d451422f03c62bcbe41 /app/Controller/ProjectOverviewController.php
parentab48a09f0d674b703467975b376c5ac7352670ae (diff)
Rename controllers
Diffstat (limited to 'app/Controller/ProjectOverviewController.php')
-rw-r--r--app/Controller/ProjectOverviewController.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Controller/ProjectOverviewController.php b/app/Controller/ProjectOverviewController.php
new file mode 100644
index 00000000..75cf25ba
--- /dev/null
+++ b/app/Controller/ProjectOverviewController.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Kanboard\Controller;
+
+/**
+ * Project Overview Controller
+ *
+ * @package Kanboard\Controller
+ * @author Frederic Guillot
+ */
+class ProjectOverviewController extends BaseController
+{
+ /**
+ * Show project overview
+ */
+ public function show()
+ {
+ $project = $this->getProject();
+ $this->project->getColumnStats($project);
+
+ $this->response->html($this->helper->layout->app('project_overview/show', array(
+ 'project' => $project,
+ 'title' => $project['name'],
+ 'description' => $this->helper->projectHeader->getDescription($project),
+ 'users' => $this->projectUserRole->getAllUsersGroupedByRole($project['id']),
+ 'roles' => $this->role->getProjectRoles(),
+ 'events' => $this->helper->projectActivity->getProjectEvents($project['id'], 10),
+ 'images' => $this->projectFile->getAllImages($project['id']),
+ 'files' => $this->projectFile->getAllDocuments($project['id']),
+ )));
+ }
+}