diff options
| author | 2022-09-18 18:31:14 +0200 | |
|---|---|---|
| committer | 2022-09-18 18:31:14 +0200 | |
| commit | 6bed64f6f360e1480bf5efc0d52d255b85791242 (patch) | |
| tree | 72efa94a28f042562cd6c7ed689711fe9acde7d5 /app/views/stats | |
| parent | 67ea2d16b7723719f7dc5aeeecc45a00605df20f (diff) | |
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 <alexandre@alapetite.fr>
* Update app/views/stats/idle.phtml
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/stats')
| -rw-r--r-- | app/views/stats/idle.phtml | 19 |
1 files changed, 16 insertions, 3 deletions
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 @@ <?php foreach ($feedsInPeriod as $feedInPeriod) { $feed = $this->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' : ''; ?> - <li class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>"> + <li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $error_title, $empty_title ?>"> <a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feedInPeriod['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a> <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feedInPeriod['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?> <span title="<?= timestamptodate($feedInPeriod['last_date'], false) ?>"><?= $feedInPeriod['name'] ?> |
