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/budget | |
parent | 7d8b6f281c8e5ac41bbfd43c54845df75de61fe5 (diff) |
Add missing active class for sidebars
Diffstat (limited to 'app/Template/budget')
-rw-r--r-- | app/Template/budget/sidebar.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/budget/sidebar.php b/app/Template/budget/sidebar.php index 0fdb8612..8477c052 100644 --- a/app/Template/budget/sidebar.php +++ b/app/Template/budget/sidebar.php @@ -1,13 +1,13 @@ <div class="sidebar"> <h2><?= t('Budget') ?></h2> <ul> - <li> + <li <?= $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Budget overview'), 'budget', 'index', array('project_id' => $project['id'])) ?> </li> - <li> + <li <?= $this->app->getRouterAction() === 'create' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?> </li> - <li> + <li <?= $this->app->getRouterAction() === 'breakdown' ? 'class="active"' : '' ?>> <?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?> </li> </ul> |