aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-10-14 11:05:17 +0200
committerGravatar GitHub <noreply@github.com> 2025-10-14 11:05:17 +0200
commit5eba322cbd24191e05304df08c80af846977d99b (patch)
tree6f41386abfc77937fb042e48ca061e6dc0d2a7a5 /app/layout
parent20ecbeb09cdf05ca3ffd44980e9070b34c2b71ec (diff)
New stats overview of dates with most unread articles (#8089)
New view with direct links to dates with most unread articles: <img width="734" height="581" alt="image" src="https://github.com/user-attachments/assets/159a39b3-3a06-4ae9-9cc0-62ae36d9db9c" />
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/aside_subscription.phtml11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/layout/aside_subscription.phtml b/app/layout/aside_subscription.phtml
index ce17eaa26..be414ff03 100644
--- a/app/layout/aside_subscription.phtml
+++ b/app/layout/aside_subscription.phtml
@@ -39,20 +39,23 @@
<li class="item nav-section">
<div class="nav-header"><?= _t('admin.stats') ?></div>
<ul>
- <li class="item<?= Minz_Request::controllerName() == 'stats' && Minz_Request::actionName() == 'index' ? ' active' : '' ?>">
+ <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' : '' ?>">
+ <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' : '' ?>">
+ <li class="item<?= Minz_Request::actionName() === 'repartition' ? ' active' : '' ?>">
<a href="<?= _url('stats', 'repartition') ?>"><?= _t('sub.menu.stats.repartition') ?></a>
</li>
+ <li class="item<?= Minz_Request::actionName() === 'unreadDates' ? ' active' : '' ?>">
+ <a href="<?= _url('stats', 'unreadDates') ?>"><?= _t('sub.menu.stats.unread_dates') ?></a>
+ </li>
</ul>
</li>
</ul>
</nav>
-<?php if (Minz_Request::actionName() != 'repartition') { ?>
+<?php if (Minz_Request::actionName() !== 'repartition') { ?>
<a class="close-aside" href="#close">❌</a>
<nav class="nav_menu nav_mobile">
<a class="btn toggle_aside" href="#aside_feed"><?= _i('category') ?></a>