aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-11-20 15:10:33 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-20 15:10:33 +0100
commit9b674e7e9390d19c1a9686710d78164a41ad31d1 (patch)
tree1cbaf84d987bba69be32799819b32ea5f7e0e5d8 /app
parent02b906549edee298e1986efd2b25e28dda726e89 (diff)
Improved: show bigmarkasread button only, when there are unread articles (#4681)
* function toggle_bigMarkAsRead_button() * nothing_to_load text outside of bigmarkasread button * improved * fix * Update p/scripts/main.js Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app')
-rwxr-xr-xapp/views/helpers/stream-footer.phtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/helpers/stream-footer.phtml b/app/views/helpers/stream-footer.phtml
index ebce4d852..f37ba59d6 100755
--- a/app/views/helpers/stream-footer.phtml
+++ b/app/views/helpers/stream-footer.phtml
@@ -30,19 +30,20 @@ if ($hasAccess) { ?>
<?php if (FreshRSS_Context::$next_id) { ?>
<button id="load_more" type="submit" class="btn" formaction="<?= Minz_Url::display($url_next) ?>"><?= _t('gen.stream.load_more') ?></button>
<?php } elseif ($hasAccess) { ?>
+ <?= _t('gen.stream.nothing_to_load') ?><br />
<button id="bigMarkAsRead"
class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
form="stream-footer"
formaction="<?= Minz_Url::display($url_mark_read) ?>"
type="submit">
- <?= _t('gen.stream.nothing_to_load') ?><br />
<span class="bigTick">✓</span><br />
- <?= _t('gen.stream.mark_all_read') ?>
+ <span class="markAllRead"><?= _t('gen.stream.mark_all_read') ?></span>
+ <?php if (FreshRSS_Context::$user_conf->onread_jump_next) { ?>
+ <div class="jumpNext"><?= _t('conf.reading.jump_next') ?></div>
+ <?php } ?>
</button>
<?php } else { ?>
- <div id="bigMarkAsRead">
- <?= _t('gen.stream.nothing_to_load') ?><br />
- </div>
+ <?= _t('gen.stream.nothing_to_load') ?><br />
<?php } ?>
</div>
<?php if ($hasAccess) { ?>