summaryrefslogtreecommitdiff
path: root/app/Template/export
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 21:24:24 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 21:24:24 -0400
commited074d176406ca3ce5ba8fa6e0c4511f729efa5b (patch)
treec5bafd1a6226cf441cfbbaf56be80479260d254a /app/Template/export
parent14d6affe2e42fc86a86fbe5e624dbaacf6b8223c (diff)
Move task import outside of project settings
Diffstat (limited to 'app/Template/export')
-rw-r--r--app/Template/export/sidebar.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/export/sidebar.php b/app/Template/export/sidebar.php
index c9d4d0a3..55fbaeef 100644
--- a/app/Template/export/sidebar.php
+++ b/app/Template/export/sidebar.php
@@ -1,16 +1,16 @@
<div class="sidebar">
<h2><?= t('Exports') ?></h2>
<ul>
- <li <?= $this->app->getRouterAction() === 'tasks' ? 'class="active"' : '' ?>>
+ <li <?= $this->app->checkMenuSelection('ExportController', 'tasks') ?>>
<?= $this->url->link(t('Tasks'), 'ExportController', 'tasks', array('project_id' => $project['id'])) ?>
</li>
- <li <?= $this->app->getRouterAction() === 'subtasks' ? 'class="active"' : '' ?>>
+ <li <?= $this->app->checkMenuSelection('ExportController', 'subtasks') ?>>
<?= $this->url->link(t('Subtasks'), 'ExportController', 'subtasks', array('project_id' => $project['id'])) ?>
</li>
- <li <?= $this->app->getRouterAction() === 'transitions' ? 'class="active"' : '' ?>>
+ <li <?= $this->app->checkMenuSelection('ExportController', 'transitions') ?>>
<?= $this->url->link(t('Task transitions'), 'ExportController', 'transitions', array('project_id' => $project['id'])) ?>
</li>
- <li <?= $this->app->getRouterAction() === 'summary' ? 'class="active"' : '' ?>>
+ <li <?= $this->app->checkMenuSelection('ExportController', 'summary') ?>>
<?= $this->url->link(t('Daily project summary'), 'ExportController', 'summary', array('project_id' => $project['id'])) ?>
</li>
<?= $this->hook->render('template:export:sidebar') ?>