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/subscription/index.phtml | |
| 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/subscription/index.phtml')
| -rw-r--r-- | app/views/subscription/index.phtml | 25 |
1 files changed, 18 insertions, 7 deletions
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' : ''; ?> - <li class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>" - title="<?= $feed->inError() ? _t('sub.feed.error') : '' ?>" - draggable="true" - data-feed-id="<?= $feed->id() ?>"> - <a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id()) ?>"><?= _i('configure') ?></a> + <li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $error_title, $empty_title ?>" + draggable="true" data-feed-id="<?= $feed->id() ?>"> + <a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id()) ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a> <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?> <span class="item-title"><?= $feed->name() ?></span> </li> |
