summaryrefslogtreecommitdiff
path: root/app/Template/config/sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/config/sidebar.php')
-rw-r--r--app/Template/config/sidebar.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php
index 05ec4094..b2c73292 100644
--- a/app/Template/config/sidebar.php
+++ b/app/Template/config/sidebar.php
@@ -1,34 +1,34 @@
<div class="sidebar">
<h2><?= t('Actions') ?></h2>
<ul>
- <li>
+ <li <?= $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('About'), 'config', 'index') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'application' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Application settings'), 'config', 'application') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'project' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Project settings'), 'config', 'project') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'board' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Board settings'), 'config', 'board') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'calendar' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Calendar settings'), 'config', 'calendar') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterController() === 'link' && $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Link settings'), 'link', 'index') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterController() === 'currency' && $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Currency rates'), 'currency', 'index') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'integrations' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Integrations'), 'config', 'integrations') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'webhook' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Webhooks'), 'config', 'webhook') ?>
</li>
- <li>
+ <li <?= $this->app->getRouterAction() === 'api' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('API'), 'config', 'api') ?>
</li>
</ul>