Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. add show_first_page_number to show page or not for page 1 link 2. some parameters got from config, almost have PAGINATION_ prefix
- Loading branch information
Showing
5 changed files
with
80 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
PER_PAGE = 10 | ||
CSS_FRAMEWORK = "bootstrap5" | ||
LINK_SIZE = "sm" | ||
PAGINATION_CSS_FRAMEWORK = "boostrap5" | ||
PAGINATION_LINK_SIZE = "sm" | ||
|
||
# decide whether or not a single page returns pagination | ||
SHOW_SINGLE_PAGE = False | ||
PAGINATION_SHOW_SINGLE_PAGE = False | ||
PAGINATION_SHOW_FIRST_PAGE_NUMBER = False | ||
PAGINATION_PREV_REL = "prev" | ||
PAGINATION_NEXT_REL = "next prefetch" | ||
PAGINATION_RECORD_NAME = "records | ||
PAGINATION_FORMAT_TOTAL = True | ||
PAGINATION_FORMAT_NUMBER = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters