Skip to content

Commit

Permalink
[UI] fix active check in subscription menu (FreshRSS#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst authored and mdemoss committed Mar 25, 2021
1 parent 6e2a8e1 commit c81e0e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/layout/aside_subscription.phtml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<ul class="nav nav-list aside">
<li class="nav-header"><?php echo _t('sub.menu.subscription_management'); ?></li>

<li class="item<?php echo Minz_Request::controllerName() == 'subscription' ? ' active' : ''; ?>">
<li class="item<?php echo Minz_Request::controllerName() === 'subscription' && Minz_Request::actionName() !== 'bookmarklet' ? ' active' : ''; ?>">
<a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('sub.menu.subscription_management'); ?></a>
</li>

<li class="item<?php echo Minz_Request::controllerName() == 'importExport' ? ' active' : ''; ?>">
<li class="item<?php echo Minz_Request::controllerName() === 'importExport' ? ' active' : ''; ?>">
<a href="<?php echo _url('importExport', 'index'); ?>"><?php echo _t('sub.menu.import_export'); ?></a>
</li>

<li class="item<?php echo Minz_Request::controllerName() == 'bookmarklet' ? ' active' : ''; ?>">
<li class="item<?php echo Minz_Request::controllerName() === 'subscription' && Minz_Request::actionName() === 'bookmarklet' ? ' active' : ''; ?>">
<a href="<?php echo _url('subscription', 'bookmarklet'); ?>"><?php echo _t('sub.menu.subscription_tools'); ?></a>
</li>
</ul>

0 comments on commit c81e0e7

Please sign in to comment.