summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 19:00:00 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 19:00:00 +0200
commit921dd88e646621a0118c97716cae6b34a0ed26b1 (patch)
treeae3908d124cd352bbe757a889b97a2c56a69fba6 /app/views
parent07d123f1aa09afc79c322b2364132981f5285ac1 (diff)
Add a message if there is no idle feed (stats)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stats/idle.phtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml
index 14b83ae95..3ce8d3d3e 100644
--- a/app/views/stats/idle.phtml
+++ b/app/views/stats/idle.phtml
@@ -6,8 +6,10 @@
<h1><?php echo _t('stats_idle'); ?></h1>
<?php
+ $nothing = true;
foreach ($this->idleFeeds as $period => $feeds) {
if (!empty($feeds)) {
+ $nothing = false;
?>
<div class="stat">
<h2><?php echo _t($period); ?></h2>
@@ -32,5 +34,11 @@
<?php
}
}
+
+ if ($nothing) {
?>
+ <p class="alert alert-warn">
+ <span class="alert-head"><?php echo _t('stats_no_idle'); ?></span>
+ </p>
+ <?php } ?>
</div>