aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside_configure.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:45:37 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:45:37 +0100
commita97bbd9bd54c5fa56d54b3c214cf4e8af96af8b2 (patch)
tree6e83890bc1b3814a12c3b7bedc0d5944f30f507b /app/layout/aside_configure.phtml
parent42fd539a1b14f883077048a35864b4294b6efe94 (diff)
parente91b72b63cd11ae3c4f59e48439e93955242c673 (diff)
Merge branch 'dev'
Conflicts: CHANGELOG README.fr.md README.md app/Controllers/feedController.php app/Controllers/indexController.php app/i18n/en.php app/i18n/fr.php app/views/helpers/view/normal_view.phtml app/views/stats/index.phtml app/views/stats/repartition.phtml constants.php p/scripts/main.js
Diffstat (limited to 'app/layout/aside_configure.phtml')
-rw-r--r--app/layout/aside_configure.phtml49
1 files changed, 31 insertions, 18 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml
index d5c9bf4c9..7567a8206 100644
--- a/app/layout/aside_configure.phtml
+++ b/app/layout/aside_configure.phtml
@@ -1,33 +1,46 @@
<ul class="nav nav-list aside">
- <li class="nav-header"><?php echo _t('configuration'); ?></li>
+ <li class="nav-header"><?php echo _t('gen.menu.configuration'); ?></li>
<li class="item<?php echo Minz_Request::actionName() === 'display' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'display'); ?>"><?php echo _t('display_configuration'); ?></a>
+ <a href="<?php echo _url('configure', 'display'); ?>"><?php echo _t('gen.menu.display'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName() === 'reading' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'reading'); ?>"><?php echo _t('reading_configuration'); ?></a>
+ <a href="<?php echo _url('configure', 'reading'); ?>"><?php echo _t('gen.menu.reading'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName() === 'archiving' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'archiving'); ?>"><?php echo _t('archiving_configuration'); ?></a>
+ <a href="<?php echo _url('configure', 'archiving'); ?>"><?php echo _t('gen.menu.archiving'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName() === 'sharing' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'sharing'); ?>"><?php echo _t('sharing'); ?></a>
+ <a href="<?php echo _url('configure', 'sharing'); ?>"><?php echo _t('gen.menu.sharing'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName() === 'shortcut' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'shortcut'); ?>"><?php echo _t('shortcuts'); ?></a>
+ <a href="<?php echo _url('configure', 'shortcut'); ?>"><?php echo _t('gen.menu.shortcuts'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName() === 'queries' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'queries'); ?>"><?php echo _t('queries'); ?></a>
- </li>
- <li class="separator"></li>
- <li class="item<?php echo Minz_Request::actionName() === 'users' ? ' active' : ''; ?>">
- <a href="<?php echo _url('configure', 'users'); ?>"><?php echo _t('users'); ?></a>
- </li>
- <?php
- $current_user = Minz_Session::param('currentUser', '');
- if (Minz_Configuration::isAdmin($current_user)) {
- ?>
- <li class="item<?php echo Minz_Request::controllerName() === 'update' ? ' active' : ''; ?>">
- <a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('update'); ?></a>
+ <a href="<?php echo _url('configure', 'queries'); ?>"><?php echo _t('gen.menu.queries'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'user' &&
+ Minz_Request::actionName() === 'profile'? ' active' : ''; ?>">
+ <a href="<?php echo _url('user', 'profile'); ?>"><?php echo _t('gen.menu.user_profile'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'extension' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('extension', 'index'); ?>"><?php echo _t('gen.menu.extensions'); ?></a>
+ </li>
+ <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
+ <li class="nav-header"><?php echo _t('gen.menu.admin'); ?></li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'user' &&
+ Minz_Request::actionName() === 'manage' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('user', 'manage'); ?>"><?php echo _t('gen.menu.user_management'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'auth' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('auth', 'index'); ?>"><?php echo _t('gen.menu.authentication'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'checkInstall' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('update', 'checkInstall'); ?>"><?php echo _t('gen.menu.check_install'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'index' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('gen.menu.update'); ?></a>
</li>
<?php } ?>
</ul>