Petite modif : on a toujours au moins un commentaire par thread

This commit is contained in:
Darks 2019-12-07 16:51:54 +01:00
parent 04e317285f
commit d447372bf3
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 3 additions and 7 deletions

View File

@ -5,14 +5,10 @@
{% endif %}
{% for page in objects.iter_pages(1, 5, 6, 1) %}
{% if page %}
{% if page != objects.page %}
<a href="{{ _url_for(route, route_args, page=page) }}">{{ page }}</a>
{% else %}
<strong>{{ page }}</strong>
{% endif %}
{% if page != objects.page %}
<a href="{{ _url_for(route, route_args, page=page) }}">{{ page }}</a>
{% else %}
<span class=ellipsis></span>
<strong>{{ page }}</strong>
{% endif %}
{% endfor %}