diff options
| author | 2014-09-19 19:00:00 +0200 | |
|---|---|---|
| committer | 2014-09-19 19:00:00 +0200 | |
| commit | 921dd88e646621a0118c97716cae6b34a0ed26b1 (patch) | |
| tree | ae3908d124cd352bbe757a889b97a2c56a69fba6 | |
| parent | 07d123f1aa09afc79c322b2364132981f5285ac1 (diff) | |
Add a message if there is no idle feed (stats)
| -rw-r--r-- | app/i18n/en.php | 1 | ||||
| -rw-r--r-- | app/i18n/fr.php | 1 | ||||
| -rw-r--r-- | app/views/stats/idle.phtml | 8 |
3 files changed, 10 insertions, 0 deletions
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 @@ <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> |
