Showing content from https://github.com/django-wiki/django-wiki/issues/1187 below:
Default pagination looks strange · Issue #1187 · django-wiki/django-wiki · GitHub
The default pagination looks weird. The arrow buttons are much larger than the numbers (see picture).
The code specifying this lies here:
<ul class="pagination"> {% if page_obj.has_previous %} <li><a class="prev btn btn-info" href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ page_obj.previous_page_number }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">«</a></li> {% else %} <li class="disabled"><span>«</span></li> {% endif %} {% for pc in paginator.page_range %} {% if pc == 0 %} <li class="disabled"><span>...</span></li> {% else %} <li class="{% if pc == page_obj.number %} active{% endif %}"><a href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ pc }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">{{ pc }}</a></li> {% endif %} {% endfor %} {% if page_obj.has_next %} <li><a class="next btn btn-info" href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ page_obj.next_page_number }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">»</a></li> {% else %} <li class="disabled"><span>»</span></li> {% endif %} </ul>
Config:
- Operating system: SMP Debian 4.19.235-1
- Django version: 3.1.14
- Django-wiki version: 0.7.9
Steps to reproduce:
- Set up a default django-wiki site.
- Make an article and change it more than ten times.
- Go to the
Changes
tab. On the bottom, you will see the pagination effect.
It would be easy to rewrite the pagination bar to look like the bootstrap pagination bar. If that is an acceptable solution, I could do it.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4