Add new plugin hooks in view switcher
This commit is contained in:
parent
b6e1c3f2c7
commit
97a30d662f
|
|
@ -1,10 +1,19 @@
|
|||
<ul class="views">
|
||||
|
||||
<?= $this->hook->render('template:project-header:view-switcher-before-project-overview', array('project' => $project, 'filters' => $filters)) ?>
|
||||
|
||||
<li <?= $this->app->checkMenuSelection('ProjectOverviewController') ?>>
|
||||
<?= $this->url->icon('eye', t('Overview'), 'ProjectOverviewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-overview', t('Keyboard shortcut: "%s"', 'v o')) ?>
|
||||
</li>
|
||||
|
||||
<?= $this->hook->render('template:project-header:view-switcher-before-board-view', array('project' => $project, 'filters' => $filters)) ?>
|
||||
|
||||
<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>
|
||||
|
||||
<?= $this->hook->render('template:project-header:view-switcher-before-task-list', array('project' => $project, 'filters' => $filters)) ?>
|
||||
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue