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/stats/idle.phtml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'app/views/stats') diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 9dbfbf4ab..a88dbeb8a 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -26,10 +26,23 @@ feeds[$feedInPeriod['id']] ?? null; - $error = $feed == null || $feed->inError() ? ' error' : ''; - $empty = $feed != null && $feed->nbEntries() == 0 ? ' empty' : ''; + + $error_class = ''; + $error_title = ''; + if ($feed == null || $feed->inError()) { + $error_class = ' error'; + $error_title = _t('sub.feed.error'); + } + + $empty_class = ''; + $empty_title = ''; + if ($feed != null && $feed->nbEntries() == 0) { + $empty_class = ' empty'; + $empty_title = _t('sub.feed.empty'); + } + $mute_class = $feed->mute() ? ' mute' : ''; ?> -
  • +
  • show_favicons): ?>✇ -- cgit v1.2.3