From 921dd88e646621a0118c97716cae6b34a0ed26b1 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 19 Sep 2014 19:00:00 +0200 Subject: Add a message if there is no idle feed (stats) --- app/i18n/en.php | 1 + app/i18n/fr.php | 1 + app/views/stats/idle.phtml | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/app/i18n/en.php b/app/i18n/en.php index 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.php index 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.phtml index 14b83ae95..3ce8d3d3e 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -6,8 +6,10 @@

idleFeeds as $period => $feeds) { if (!empty($feeds)) { + $nothing = false; ?>

@@ -32,5 +34,11 @@ +

+ +

+
-- cgit v1.2.3