Page navigator doesn't fit for long pages
Bug #1710577 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Widelands Website |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For long forum threads, the page navigator will break into a second line, and not fit into the layout any more.
Proposed solution: Omit some pages from the list, e.g. if Page 20 is currently shown, have it look like this:
‹‹‹‹ ‹‹ 1 2 3 ... 18 19 | 20 | 21 22 ... 31 32 33 ›› ››››
Related branches
lp:~widelands-dev/widelands-website/pagination
- GunChleoc: Approve
-
Diff: 480 lines (+104/-90)15 files modifiedmainpage/templatetags/get_model_name.py (+8/-0)
media/css/base.css (+21/-7)
media/css/forum.css (+1/-0)
pip_requirements.txt (+1/-1)
pybb/util.py (+0/-46)
pybb/views.py (+6/-11)
settings.py (+7/-0)
templates/news/category_posts.html (+3/-3)
templates/news/inlines/posts_table.html (+1/-1)
templates/notification/notice_settings.html (+0/-1)
templates/pagination/pagination_mod.html (+32/-0)
templates/pybb/forum.html (+7/-8)
templates/pybb/topic.html (+11/-6)
templates/wiki/recentchanges.html (+3/-3)
templates/wlmaps/index.html (+3/-3)
Changed in widelands-website: | |
status: | New → Fix Released |
To post a comment you must log in.
The pagination for pybb is done through its own implementation which is part of the website code. So it could be adjusted to our needs.
On the other hand we have a third party pagination utility called linaro- django- pagination, which is used in several places, e.g. news, or pm's.
I have adjusted the code on the server to use also the linaro-pagination for a topic (sorry for the server errors :-D ): https:/ /wl.widelands. org/forum/ topic/2646/ ?page=33# post-21091
I think there should be one sort of pagination equal to all pages, so i suggest to use the implementation with linaro- django- pagination also for pybb. Of course the template could also be adjusted, e.g. having the current page number between two vertical lines ('|').