From 6bed64f6f360e1480bf5efc0d52d255b85791242 Mon Sep 17 00:00:00 2001 From: maTh Date: Sun, 18 Sep 2022 18:31:14 +0200 Subject: Improved: Mouse title on empty feeds (#4617) * Update aside_feed.phtml * Update global.phtml * Update idle.phtml * Update index.phtml * Update idle.phtml * improved * Update app/views/subscription/index.phtml Co-authored-by: Alexandre Alapetite * Update app/views/stats/idle.phtml Co-authored-by: Alexandre Alapetite Co-authored-by: Alexandre Alapetite --- app/views/subscription/index.phtml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'app/views/subscription/index.phtml') diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index b546eea6d..f056214d2 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -45,14 +45,25 @@ if ($this->onlyFeedsWithError && !$feed->inError()) { continue; } - $error = $feed->inError() ? ' error' : ''; - $empty = $feed->nbEntries() == 0 ? ' empty' : ''; + + $error_class = ''; + $error_title = ''; + if ($feed->inError()) { + $error_class = ' error'; + $error_title = _t('sub.feed.error'); + } + + $empty_class = ''; + $empty_title = ''; + if ($feed->nbEntries() == 0) { + $empty_class = ' empty'; + $empty_title = _t('sub.feed.empty'); + } + $mute_class = $feed->mute() ? ' mute' : ''; ?> -
  • - +
  • + show_favicons): ?>✇ name() ?>
  • -- cgit v1.2.3