diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-04-01 17:04:18 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-04-01 17:04:18 -0400 |
commit | 5cc488947305eea5b9762997222c84d6007761c8 (patch) | |
tree | 5f602bb06ade363aa40eda99b4fe9a61f592609f /app/Template/project_header | |
parent | 253d5a9331e4b4775066ec8cb9664da9a2aa6ac9 (diff) |
Move Gantt charts to external plugin
Diffstat (limited to 'app/Template/project_header')
-rw-r--r-- | app/Template/project_header/views.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php index f200801a..4203595e 100644 --- a/app/Template/project_header/views.php +++ b/app/Template/project_header/views.php @@ -8,10 +8,6 @@ <li <?= $this->app->checkMenuSelection('TaskListController') ?>> <?= $this->url->icon('list', t('List'), 'TaskListController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?> </li> - <?php if ($this->user->hasProjectAccess('TaskGanttController', 'show', $project['id'])): ?> - <li <?= $this->app->checkMenuSelection('TaskGanttController') ?>> - <?= $this->url->icon('sliders', t('Gantt'), 'TaskGanttController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-gantt', t('Keyboard shortcut: "%s"', 'v g')) ?> - </li> - <?php endif ?> + <?= $this->hook->render('template:project-header:view-switcher', array('project' => $project, 'filters' => $filters)) ?> </ul> |