1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-12-14 19:42:14 +03:00

Add settings for number of books/shelves that will be displayed per page

This commit is contained in:
Joshua Booth
2025-05-13 20:17:36 +01:00
parent 3e99ce4098
commit b6110ed3cd
5 changed files with 42 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class BookshelfController extends Controller
$shelves = $this->queries->visibleForListWithCover()
->orderBy($listOptions->getSort(), $listOptions->getOrder())
->paginate(18);
->paginate(intval(setting('sorting-shelves-per-page', '18')));
$recents = $this->isSignedIn() ? $this->queries->recentlyViewedForCurrentUser()->get() : false;
$popular = $this->queries->popularForList()->get();
$new = $this->queries->visibleForList()