From ea2cbb76d5d48ef8d2601fc33edc55c15929b963 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 8 Jan 2017 12:23:25 -0500 Subject: Open project activities in modal box --- ChangeLog | 1 + app/Controller/ActivityController.php | 3 +-- app/Template/activity/project.php | 10 ++++------ app/Template/project/dropdown.php | 2 +- app/Template/project_header/dropdown.php | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 068f5ecf..15ec0979 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ Improvements: * Make icons clickable in menus * Open task import in modal box * Open form to create customer filters in modal box +* Open project activities in modal box Version 1.0.36 (Dec 30, 2016) ----------------------------- diff --git a/app/Controller/ActivityController.php b/app/Controller/ActivityController.php index 476e4aac..edf0fbb4 100644 --- a/app/Controller/ActivityController.php +++ b/app/Controller/ActivityController.php @@ -19,10 +19,9 @@ class ActivityController extends BaseController { $project = $this->getProject(); - $this->response->html($this->helper->layout->app('activity/project', array( + $this->response->html($this->template->render('activity/project', array( 'events' => $this->helper->projectActivity->getProjectEvents($project['id']), 'project' => $project, - 'title' => t('%s\'s activity', $project['name']) ))); } diff --git a/app/Template/activity/project.php b/app/Template/activity/project.php index 6d1e4a2e..ce1f8bba 100644 --- a/app/Template/activity/project.php +++ b/app/Template/activity/project.php @@ -1,14 +1,12 @@ -
- projectHeader->render($project, 'ActivityController', $this->app->getRouterAction()) ?> + - render('event/events', array('events' => $events)) ?> -
+render('event/events', array('events' => $events)) ?> diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php index eaaa3546..4ae9318c 100644 --- a/app/Template/project/dropdown.php +++ b/app/Template/project/dropdown.php @@ -17,7 +17,7 @@
  • - url->icon('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> + modal->medium('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('AnalyticController', 'taskDistribution', $project['id'])): ?> diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php index 3f11838d..27a13ac9 100644 --- a/app/Template/project_header/dropdown.php +++ b/app/Template/project_header/dropdown.php @@ -27,7 +27,7 @@
  • - url->icon('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> + modal->medium('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('CustomFilterController', 'index', $project['id'])): ?> -- cgit v1.2.3