diff options
| author | 2022-02-06 17:29:56 +0100 | |
|---|---|---|
| committer | 2022-02-06 17:29:56 +0100 | |
| commit | dfee46792f91cc357f697f35e7429c0c196f6a16 (patch) | |
| tree | beffd4906747360905decfa9142a0f63c62c5806 /app/views/helpers | |
| parent | 1c5cf718599f698836fef3f8f88748757a7e85b5 (diff) | |
Improved: "Pagination" + load more button (#4125)
* Frontend changes done
* Load more should work now also without JS
* Update template.rtl.css
* improved the themes' CSS
* Update template.rtl.css
* fix CI
* CSS prop. order fixed
* Rename pagination.phtml to stream-footer.phtml
* use the new template name
* rename key of i18n
* fixed CI, that does not like the white space
* rename pagination variable
* Update indexController.php
Diffstat (limited to 'app/views/helpers')
| -rwxr-xr-x | app/views/helpers/stream-footer.phtml (renamed from app/views/helpers/pagination.phtml) | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/stream-footer.phtml index eed4f5dc2..ebce4d852 100755 --- a/app/views/helpers/pagination.phtml +++ b/app/views/helpers/stream-footer.phtml @@ -21,34 +21,30 @@ <?php $hasAccess = FreshRSS_Auth::hasAccess(); if ($hasAccess) { ?> -<form id="mark-read-pagination" method="post"> +<form id="stream-footer" action="" method="post"> <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> <?php } else { ?> -<div id="mark-read-pagination"> +<div id="stream-footer"> <?php }?> -<ul class="pagination"> - <li class="item pager-next"> + <div class="stream-footer-inner"> <?php if (FreshRSS_Context::$next_id) { ?> - <a id="load_more" href="<?= Minz_Url::display($url_next) ?>"> - <?= _t('gen.pagination.load_more') ?> - </a> + <button id="load_more" type="submit" class="btn" formaction="<?= Minz_Url::display($url_next) ?>"><?= _t('gen.stream.load_more') ?></button> <?php } elseif ($hasAccess) { ?> <button id="bigMarkAsRead" class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>" - form="mark-read-pagination" + form="stream-footer" formaction="<?= Minz_Url::display($url_mark_read) ?>" type="submit"> - <?= _t('gen.pagination.nothing_to_load') ?><br /> + <?= _t('gen.stream.nothing_to_load') ?><br /> <span class="bigTick">✓</span><br /> - <?= _t('gen.pagination.mark_all_read') ?> + <?= _t('gen.stream.mark_all_read') ?> </button> <?php } else { ?> <div id="bigMarkAsRead"> - <?= _t('gen.pagination.nothing_to_load') ?><br /> + <?= _t('gen.stream.nothing_to_load') ?><br /> </div> <?php } ?> - </li> -</ul> + </div> <?php if ($hasAccess) { ?> </form> <?php } else {?> |
