Add missing active class for sidebars

This commit is contained in:
Frederic Guillot
2015-08-30 09:44:15 -04:00
parent 7d8b6f281c
commit 345c4caea4
2 changed files with 7 additions and 7 deletions

View File

@@ -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>