From 5bbc903dcab12dcf53abc40bf67c2cd7898e0420 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 16 Feb 2016 17:28:11 -0500 Subject: Start to implement a project overview page --- app/Controller/ProjectOverview.php | 27 ++++++++++++++ app/ServiceProvider/RouteProvider.php | 3 ++ app/Template/project_header/views.php | 12 ++++--- app/Template/project_overview/show.php | 66 ++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 app/Controller/ProjectOverview.php create mode 100644 app/Template/project_overview/show.php (limited to 'app') 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 @@ +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)); + } +} diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php index c723140e..d551f25d 100644 --- a/app/ServiceProvider/RouteProvider.php +++ b/app/ServiceProvider/RouteProvider.php @@ -63,6 +63,9 @@ class RouteProvider implements ServiceProviderInterface $container['route']->addRoute('project/:project_id/permissions', 'ProjectPermission', 'index'); $container['route']->addRoute('project/:project_id/import', 'taskImport', 'step1'); + // Project Overview + $container['route']->addRoute('project/:project_id/overview', 'ProjectOverview', 'show'); + // ProjectEdit routes $container['route']->addRoute('project/:project_id/edit', 'ProjectEdit', 'edit'); $container['route']->addRoute('project/:project_id/edit/dates', 'ProjectEdit', 'dates'); diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php index 1219a213..f8fdbb02 100644 --- a/app/Template/project_header/views.php +++ b/app/Template/project_header/views.php @@ -1,18 +1,22 @@