summaryrefslogtreecommitdiff
path: root/app/Template/project_header
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project_header')
-rw-r--r--app/Template/project_header/search.php1
-rw-r--r--app/Template/project_header/views.php10
2 files changed, 3 insertions, 8 deletions
diff --git a/app/Template/project_header/search.php b/app/Template/project_header/search.php
index 512e88d7..75110779 100644
--- a/app/Template/project_header/search.php
+++ b/app/Template/project_header/search.php
@@ -2,6 +2,7 @@
<form method="get" action="<?= $this->url->dir() ?>" class="search">
<?= $this->form->hidden('controller', $filters) ?>
<?= $this->form->hidden('action', $filters) ?>
+ <?= $this->form->hidden('plugin', $filters) ?>
<?= $this->form->hidden('project_id', $filters) ?>
<div class="input-addon">
diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php
index 2684c744..4203595e 100644
--- a/app/Template/project_header/views.php
+++ b/app/Template/project_header/views.php
@@ -5,15 +5,9 @@
<li <?= $this->app->checkMenuSelection('BoardViewController') ?>>
<?= $this->url->icon('th', t('Board'), 'BoardViewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?>
</li>
- <li <?= $this->app->checkMenuSelection('CalendarController') ?>>
- <?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
- </li>
<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>