diff options
| author | 2021-10-14 13:28:19 +0200 | |
|---|---|---|
| committer | 2021-10-14 13:28:19 +0200 | |
| commit | 14e5d89e34135610d84313a1403dcff0043f8ab7 (patch) | |
| tree | 46b077fe0a593cd59a0ca0a7a63c772d03f06053 /app/layout/header.phtml | |
| parent | b673c53e07cc9b5ffb321485df3da0b50062473f (diff) | |
Improve conf menu (#3880)
* i18n: "account" added
* reordered menu + add logout in the left nav menu
* Update app/i18n/fr/gen.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/layout/header.phtml')
| -rw-r--r-- | app/layout/header.phtml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml index cffb0e009..2c92b9a5c 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -54,6 +54,14 @@ if (FreshRSS_Auth::accessNeedsAction()) { <a class="btn dropdown-toggle" href="#dropdown-configure"><?= _i('configure') ?></a> <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> + <li class="dropdown-header"><?= _t('gen.menu.account') ?>: <?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?></li> + <li class="item"><a href="<?= _url('user', 'profile') ?>"><?= _t('gen.menu.user_profile') ?></a></li> + <?php if (FreshRSS_Auth::accessNeedsAction()): ?> + <li class="item"><a class="signout" href="<?= _url('auth', 'logout') ?>"><?= _t('gen.auth.logout'); ?><?= _i('logout') ?></a></li> + <?php else: ?> + <li class="item"><span class="signout">(<?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?>)</span></li> + <?php endif; ?> + <li class="separator"></li> <li class="dropdown-header"><?= _t('gen.menu.configuration') ?></li> <li class="item"><a href="<?= _url('configure', 'display') ?>"><?= _t('gen.menu.display') ?></a></li> <li class="item"><a href="<?= _url('configure', 'reading') ?>"><?= _t('gen.menu.reading') ?></a></li> @@ -61,7 +69,6 @@ if (FreshRSS_Auth::accessNeedsAction()) { <li class="item"><a href="<?= _url('configure', 'integration') ?>"><?= _t('gen.menu.sharing') ?></a></li> <li class="item"><a href="<?= _url('configure', 'shortcut') ?>"><?= _t('gen.menu.shortcuts') ?></a></li> <li class="item"><a href="<?= _url('configure', 'queries') ?>"><?= _t('gen.menu.queries') ?></a></li> - <li class="item"><a href="<?= _url('user', 'profile') ?>"><?= _t('gen.menu.user_profile') ?></a></li> <li class="item"><a href="<?= _url('extension', 'index') ?>"><?= _t('gen.menu.extensions') ?></a></li> <?= Minz_ExtensionManager::callHook('menu_configuration_entry') ?> @@ -82,14 +89,6 @@ if (FreshRSS_Auth::accessNeedsAction()) { <li class="item"><a href="<?= _url('index', 'logs') ?>"><?= _t('gen.menu.logs') ?></a></li> <li class="item"><a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a></li> <?= Minz_ExtensionManager::callHook('menu_other_entry') ?> - - <li class="separator"></li> - <?php if (FreshRSS_Auth::accessNeedsAction()): ?> - <li class="item"><a class="signout" href="<?= _url('auth', 'logout') ?>"><?php - echo _i('logout') . ' ' . _t('gen.auth.logout') . ' (' . htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') . ')'; ?></a></li> - <?php else: ?> - <li class="item"><span class="signout">(<?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?>)</span></li> - <?php endif; ?> </ul> </div> </nav> |
