diff options
| author | 2021-09-02 09:18:20 +0200 | |
|---|---|---|
| committer | 2021-09-02 09:18:20 +0200 | |
| commit | 595979d97fee0c38d21052844a329e5221adeada (patch) | |
| tree | 593776d09c13aca41817712dba651ab6098bab22 /app | |
| parent | b563e4badb6bd9675a3227058f8921e50b675755 (diff) | |
Add navigation to about page (#3804)
* add navigation to about page
* empty headline in aside navigation
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app')
| -rw-r--r-- | app/layout/aside_configure.phtml | 4 | ||||
| -rw-r--r-- | app/views/index/about.phtml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml index f8633621f..4da160d92 100644 --- a/app/layout/aside_configure.phtml +++ b/app/layout/aside_configure.phtml @@ -48,5 +48,9 @@ <?php } ?> <?= Minz_ExtensionManager::callHook('menu_admin_entry') ?> <?php } ?> + <li class="nav-header"><!-- empty headline --></li> + <li class="item<?= Minz_Request::actionName() === 'about' ? ' active' : '' ?>"> + <a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a> + </li> </ul> </nav> diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml index db55cfbc8..699191b6e 100644 --- a/app/views/index/about.phtml +++ b/app/views/index/about.phtml @@ -1,3 +1,7 @@ +<?php if (FreshRSS_Auth::hasAccess()) {?> +<?php $this->partial('aside_configure'); ?> +<?php } ?> + <div class="post content"> <?php if (FreshRSS_Auth::hasAccess()) {?> <div class="link-back-wrapper"> |
