diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-08 12:23:25 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-08 12:23:25 -0500 |
commit | ea2cbb76d5d48ef8d2601fc33edc55c15929b963 (patch) | |
tree | 493e8b852b291b626484eea3d967cb2cf8611dd8 | |
parent | e377f450ad9a97ae9031d852e9195b9092d3e9db (diff) |
Open project activities in modal box
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | app/Controller/ActivityController.php | 3 | ||||
-rw-r--r-- | app/Template/activity/project.php | 10 | ||||
-rw-r--r-- | app/Template/project/dropdown.php | 2 | ||||
-rw-r--r-- | app/Template/project_header/dropdown.php | 2 |
5 files changed, 8 insertions, 10 deletions
@@ -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 @@ -<section id="main"> - <?= $this->projectHeader->render($project, 'ActivityController', $this->app->getRouterAction()) ?> +<div class="page-header"> + <h2><?= t('%s\'s activity', $project['name']) ?></h2> <?php if ($project['is_public']): ?> - <div class="menu-inline"> <ul> <li><?= $this->url->icon('rss-square', t('RSS feed'), 'FeedController', 'project', array('token' => $project['token']), false, '', '', true) ?></li> <li><?= $this->url->icon('calendar', t('iCal feed'), 'ICalendarController', 'project', array('token' => $project['token'])) ?></li> </ul> - </div> <?php endif ?> +</div> - <?= $this->render('event/events', array('events' => $events)) ?> -</section> +<?= $this->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 @@ <?php endif ?> <li> - <?= $this->url->icon('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> + <?= $this->modal->medium('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> </li> <?php if ($this->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 @@ <?php endif ?> <li> - <?= $this->url->icon('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> + <?= $this->modal->medium('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> </li> <?php if ($this->user->hasProjectAccess('CustomFilterController', 'index', $project['id'])): ?> |