Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Implement pagination support #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

sblinch
Copy link
Contributor

@sblinch sblinch commented Mar 15, 2019

Paginates the book, author, and series lists, and the search results. This should help with browsing large libraries.

I'm aware that you're refactoring the server code, so I tried to keep the changes in server.go as unobtrusive as possible. Basically just an extra .Take() and .Skip() call on each slice, a call to NewPagination(), and an extra variable passed to the template renderer.

Implements #46.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant