forked from FreshRSS/FreshRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] fix active check in subscription menu (FreshRSS#1858)
- Loading branch information
1 parent
6e2a8e1
commit c81e0e7
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |