aboutsummaryrefslogtreecommitdiff
path: root/app/views/stats/idle.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-25 10:33:06 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-25 10:33:06 +0200
commit584665eed4dfc1bf31c7557edd96e90b64f90c54 (patch)
tree6f189926e38fb884ec3072716114930010a4b3ef /app/views/stats/idle.phtml
parentd5d3f6dcfa21e7defb26f3d470289e957bdb3dde (diff)
Stats idle: hide empty periods
https://github.com/marienfressinaud/FreshRSS/commit/e507256d0bdebd02cf1fcd6fe1477cbac0b6934e#commitcomment-7119169
Diffstat (limited to 'app/views/stats/idle.phtml')
-rw-r--r--app/views/stats/idle.phtml10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml
index a167fcccb..2ba5237f7 100644
--- a/app/views/stats/idle.phtml
+++ b/app/views/stats/idle.phtml
@@ -5,7 +5,10 @@
<h1><?php echo _t('stats_idle'); ?></h1>
- <?php foreach ($this->idleFeeds as $period => $feeds) { ?>
+ <?php
+ foreach ($this->idleFeeds as $period => $feeds) {
+ if (!empty($feeds)) {
+ ?>
<div class="stat">
<h2><?php echo _t($period); ?></h2>
@@ -15,5 +18,8 @@
<?php } ?>
</ul>
</div>
- <?php } ?>
+ <?php
+ }
+ }
+ ?>
</div>