A free, self-hostable news aggregator…
Add a message if there is no idle feed (stats)
Marien Fressinaud921dd88e6466
diff --git a/app/i18n/en.php b/app/i18n/en.phpindex 4c6ce6eab..f95a97d11 100644--- a/app/i18n/en.php+++ b/app/i18n/en.php@@ -431,6 +431,7 @@ return array ('stats_entry_per_category' => 'Entries per category','stats_top_feed' => 'Top ten feeds','stats_entry_count' => 'Entry count',+ 'stats_no_idle' => 'There is no idle feed!','update' => 'Update','update_system' => 'Update system',diff --git a/app/i18n/fr.php b/app/i18n/fr.phpindex 889bdd173..c541a79e9 100644--- a/app/i18n/fr.php+++ b/app/i18n/fr.php@@ -431,6 +431,7 @@ return array ('stats_entry_per_category' => 'Articles par catégorie','stats_top_feed' => 'Les dix plus gros flux','stats_entry_count' => 'Nombre d’articles',+ 'stats_no_idle' => 'Il n’a aucun flux inactif !','update' => 'Mise à jour','update_system' => 'Système de mise à jour',diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtmlindex 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>