mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-27 09:47:35 -04:00
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
This commit is contained in:
@@ -65,7 +65,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$this->view->callbackBeforeEntries = function ($view) {
|
||||
try {
|
||||
FreshRSS_Context::$number++; //+1 for pagination
|
||||
FreshRSS_Context::$number++; //+1 for articles' page
|
||||
$view->entries = FreshRSS_index_Controller::listEntriesByContext();
|
||||
FreshRSS_Context::$number--;
|
||||
ob_start(); //Buffer "one entry at a time"
|
||||
@@ -77,7 +77,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$this->view->callbackBeforePagination = function ($view, $nbEntries, $lastEntry) {
|
||||
if ($nbEntries >= FreshRSS_Context::$number) {
|
||||
//We have enough entries: we discard the last one to use it for the next pagination
|
||||
//We have enough entries: we discard the last one to use it for the next articles' page
|
||||
ob_clean();
|
||||
FreshRSS_Context::$next_id = $lastEntry->id();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user