Merge lp:~widelands-dev/widelands-website/pagination into lp:widelands-website
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 469 | ||||
Proposed branch: | lp:~widelands-dev/widelands-website/pagination | ||||
Merge into: | lp:widelands-website | ||||
Diff against target: |
480 lines (+104/-90) 15 files modified
mainpage/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) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/pagination | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+329350@code.launchpad.net |
Description of the change
Replace pybb pagination with linaro-
1. "<< previous 1 2 ... 3 4 5 6 7 ... next >>"
2. "51 of 60 Topics << previous 1 2 ... 3 4 5 6 7 ... next >>"
- Removed the pagination code from pybb
- added partly overwritten template for the pagination
- added a function to get a models name in the pagination, so it shows "1 - 10 of [Topics/
- the actual page is shown a bit emphasized
- use overwritten template (2) at the top of forum and topic
- use default template (1) at the bottom
- removed some html <br>-tags and position the contents with css
- removed some unused code from pybb.util
- Changed numbers of items to the left and to the right of the current page to display from 4 (default) to 2. See: https:/
I have tested this changes locally also with pybb attachments enabled and i found no issues.
Gun: I have fiddled a lot to reduce the space below the pagination, don't know if i got it. Especially at the bottom is a big space left if there is no pagination shown.
I am getting 2 warning during pip install -r pip_requirement s.txt. Feel free to have a look in a separate branch.
Cloning git://github. com/zyga/ django- pagination. git (to 86caf150984733e b5a0bb07af26cd8 fc0a8d8496) to /home/bratzbert /widelands- website/ wlwebsite/ src/linaro- django- pagination eb5a0bb07af26cd 8fc0a8d8496' , assuming commit.
Could not find a tag or branch '86caf150984733
And unrelated to this particular branch: com/kerin/ django- sphinx. git (to 1c5ef8abcf86f9a 9458f763ceb9e5d 882247ea37) to /home/bratzbert /widelands- website/ wlwebsite/ src/django- sphinx a9458f763ceb9e5 d882247ea37' , assuming commit.
Cloning git://github.
Could not find a tag or branch '1c5ef8abcf86f9
I wanted to do a bit of testing, but it would take too long go create content, so I'll just assume that you have tested it well. Code LGTM.