diff options
| author | 2024-09-29 10:28:28 +0200 | |
|---|---|---|
| committer | 2024-09-29 10:28:28 +0200 | |
| commit | 496d3a1a486c23345ca5e9022980a9f89151bb49 (patch) | |
| tree | 61e35a5df563ea9be307add23b2a744ac263d4f7 /app/views | |
| parent | ec9f9a43ed0521b23ab9e3d78da4678e5942b268 (diff) | |
Improved: Subscription management page (#6816)
* i18n: Add an RSS feed -> Add a feed
* manage mouse title for category
* no white space between manage icon and favicon and title
* add feed link: use icon instead of plus character
* better CSS class for empty category and its alert text box
* show muted icon and warning icon
* the CSS magic incl. the themes improvements
* fix
* mute icon is more important than warning
* feed mouse hover title
* fix feed navigation sidebar: show error
* fix btn with icon and text
* fix aside feed: muted icon over warning icon
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/subscription/index.phtml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 27c6e02ef..47f549faf 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -22,7 +22,7 @@ <?php if (!$this->onlyFeedsWithError && $this->signalError) { ?> <div> - <a class="btn" href="<?= _url('subscription', 'index', 'error', '1') ?>"><?= _i('look') ?> <?= _t('sub.feed.show.error') ?></a> + <a class="btn btn-icon-text" href="<?= _url('subscription', 'index', 'error', '1') ?>"><?= _i('look') ?> <?= _t('sub.feed.show.error') ?></a> </div> <?php } ?> @@ -34,7 +34,7 @@ ?> <div class="box"> <div class="box-title"> - <a class="configure open-slider" href="<?= _url('category', 'update', 'id', $cat->id()) ?>" data-cat-position="<?= $cat->attributeString('position') ?>"><?= _i('configure') ?></a> + <a class="configure open-slider" href="<?= _url('category', 'update', 'id', $cat->id()) ?>" title="<?= _t('gen.action.manage') ?>" data-cat-position="<?= $cat->attributeString('position') ?>"><?= _i('configure') ?></a> <h2><?= $cat->name() ?><?php if ($cat->kind() === FreshRSS_Category::KIND_DYNAMIC_OPML) { echo " " . _i('opml-dyn'); } ?></h2> </div> <ul class="box-content drop-zone scrollbar-thin" dropzone="move" data-cat-id="<?= $cat->id() ?>"> @@ -59,21 +59,25 @@ $empty_title = _t('sub.feed.empty'); } $mute_class = $feed->mute() ? ' mute' : ''; + + $title = $error_title !== '' ? '⚠ ' . $error_title . ' ' : ''; + $title .= $empty_title !== '' ? $empty_title . ' ' : ''; + $title .= $feed->mute() ? '🔇 ' . _t('sub.feed.mute.state_is_muted') : ''; ?> - <li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $error_title, $empty_title ?>" + <li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $title ?>" draggable="true" data-feed-id="<?= $feed->id() ?>" data-priority="<?= $feed->priority() ?>"> - <a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id()) ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a> - <?php if (FreshRSS_Context::userConf()->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?> - <span class="item-title"><?= $feed->name() ?></span> + <a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id()) ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a><?php + if (FreshRSS_Context::userConf()->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php + endif; ?><span class="item-title"><?= $feed->name() ?></span> </li> <?php } } else { ?> - <li class="item feed disabled"><div class="alert-warn"><?= _t('sub.category.empty') ?></div></li> + <li class="item feed disabled emptyCategory"><div class="alert-warn"><?= _t('sub.category.empty') ?></div></li> <?php } ?> <?php if ($cat->kind() != FreshRSS_Category::KIND_DYNAMIC_OPML): ?> - <li class="item feed">✚ <a href="<?= _url('subscription', 'add', 'cat_id', $cat->id()) ?>"><?= _t('sub.feed.add') ?></a></li> + <li class="item feed"><a href="<?= _url('subscription', 'add', 'cat_id', $cat->id()) ?>"><?= _i('add') ?><?= _t('sub.feed.add') ?></a></li> <?php endif; ?> </ul> </div> @@ -81,7 +85,7 @@ <div class="box visible-semi"> <div class="box-title"> - ✚ <a href="<?= _url('subscription', 'add') ?>"><h2><?= _t('sub.category.add') ?></h2></a> + <a href="<?= _url('subscription', 'add') ?>"><?= _i('add') ?> <h2><?= _t('sub.category.add') ?></h2></a> </div> <div class="box-content"> </div> |
