set class=active when selecting controller=ProjectPermission

This commit is contained in:
Busfreak 2015-12-17 20:00:15 +01:00
parent bf2034b416
commit a4a1cd9f0c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
<?= $this->url->link(t('Categories'), 'category', 'index', array('project_id' => $project['id'])) ?>
</li>
<?php if ($project['is_private'] == 0): ?>
<li <?= $this->app->getRouterController() === 'project' && $this->app->getRouterAction() === 'permissions' ? 'class="active"' : '' ?>>
<li <?= $this->app->getRouterController() === 'ProjectPermission' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Permissions'), 'ProjectPermission', 'index', array('project_id' => $project['id'])) ?>
</li>
<?php endif ?>