diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-30 09:44:15 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-30 09:44:15 -0400 |
commit | 345c4caea49d50063d0af65440946002fe79912e (patch) | |
tree | 459a8b3a399d44ba0bca49c94956da3c689f0ad2 /app/Template/export | |
parent | 7d8b6f281c8e5ac41bbfd43c54845df75de61fe5 (diff) |
Add missing active class for sidebars
Diffstat (limited to 'app/Template/export')
-rw-r--r-- | app/Template/export/sidebar.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/export/sidebar.php b/app/Template/export/sidebar.php index f3bcf44d..f204d29d 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> + <li <?= $this->app->getRouterAction() === 'tasks' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Tasks'), 'export', 'tasks', array('project_id' => $project['id'])) ?> </li> - <li> + <li <?= $this->app->getRouterAction() === 'subtasks' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Subtasks'), 'export', 'subtasks', array('project_id' => $project['id'])) ?> </li> - <li> + <li <?= $this->app->getRouterAction() === 'transitions' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Task transitions'), 'export', 'transitions', array('project_id' => $project['id'])) ?> </li> - <li> + <li <?= $this->app->getRouterAction() === 'summary' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Daily project summary'), 'export', 'summary', array('project_id' => $project['id'])) ?> </li> </ul> |