aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-09-12 11:50:00 +0200
committerGravatar GitHub <noreply@github.com> 2021-09-12 11:50:00 +0200
commite5e9a417daa3d2c21f67b5e9f857299a34f112ad (patch)
treeb107c2ed19ae273066103e9698898fa1f599139a /app/layout
parentfe295f50d031ca6475e21a0ae317cf1c71a68347 (diff)
Menu: move stats into subscription management (#3803)
* add stats menu into subscription management menu * delete stats menu entry from dropdown menu * Delete aside_stats.phtml * Update aside_subscription.phtml
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/aside_stats.phtml14
-rw-r--r--app/layout/aside_subscription.phtml12
-rw-r--r--app/layout/header.phtml1
3 files changed, 12 insertions, 15 deletions
diff --git a/app/layout/aside_stats.phtml b/app/layout/aside_stats.phtml
deleted file mode 100644
index 1b13b8002..000000000
--- a/app/layout/aside_stats.phtml
+++ /dev/null
@@ -1,14 +0,0 @@
-<nav class="nav nav-list aside">
- <ul>
- <li class="nav-header"><?= _t('admin.stats') ?></li>
- <li class="item<?= Minz_Request::actionName() == 'index' ? ' active' : '' ?>">
- <a href="<?= _url('stats', 'index') ?>"><?= _t('admin.stats.menu.main') ?></a>
- </li>
- <li class="item<?= Minz_Request::actionName() == 'idle' ? ' active' : '' ?>">
- <a href="<?= _url('stats', 'idle') ?>"><?= _t('admin.stats.menu.idle') ?></a>
- </li>
- <li class="item<?= Minz_Request::actionName() == 'repartition' ? ' active' : '' ?>">
- <a href="<?= _url('stats', 'repartition') ?>"><?= _t('admin.stats.menu.repartition') ?></a>
- </li>
- </ul>
-</nav>
diff --git a/app/layout/aside_subscription.phtml b/app/layout/aside_subscription.phtml
index 74da63966..ee1454220 100644
--- a/app/layout/aside_subscription.phtml
+++ b/app/layout/aside_subscription.phtml
@@ -21,5 +21,17 @@
<li class="item<?= Minz_Request::controllerName() === 'subscription' && Minz_Request::actionName() === 'bookmarklet' ? ' active' : '' ?>">
<a href="<?= _url('subscription', 'bookmarklet') ?>"><?= _t('sub.menu.subscription_tools') ?></a>
</li>
+ <li class="nav-header"><?= _t('admin.stats') ?></li>
+ <li class="item<?= Minz_Request::controllerName() == 'stats' && Minz_Request::actionName() == 'index' ? ' active' : '' ?>">
+ <a href="<?= _url('stats', 'index') ?>"><?= _t('sub.menu.stats.main') ?></a>
+ </li>
+ <li class="item<?= Minz_Request::actionName() == 'idle' ? ' active' : '' ?>">
+ <a href="<?= _url('stats', 'idle') ?>"><?= _t('sub.menu.stats.idle') ?></a>
+ </li>
+ <li class="item<?= Minz_Request::actionName() == 'repartition' ? ' active' : '' ?>">
+ <a href="<?= _url('stats', 'repartition') ?>"><?= _t('sub.menu.stats.repartition') ?></a>
+ </li>
+
</ul>
+
</nav>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 17e290417..cffb0e009 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -79,7 +79,6 @@ if (FreshRSS_Auth::accessNeedsAction()) {
<?php } ?>
<li class="separator"></li>
- <li class="item"><a href="<?= _url('stats', 'index') ?>"><?= _t('gen.menu.stats') ?></a></li>
<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') ?>