Correction d'un bug de pagination

This commit is contained in:
Darks 2019-12-10 00:42:09 +01:00
parent 51d0ce1129
commit 275eacbcbb
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@
{% endif %}
{% for page in objects.iter_pages(1, 5, 6, 1) %}
{% if page != objects.page %}
{% if not page %}
{% elif page != objects.page %}
<a href="{{ _url_for(route, route_args, page=page) }}">{{ page }}</a>
{% else %}
<strong>{{ page }}</strong>