diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/budget/sidebar.php | 6 | ||||
-rw-r--r-- | app/Template/export/sidebar.php | 8 |
2 files changed, 7 insertions, 7 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> 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> |