Don't insert an empty div on the index when there's no pages

This commit is contained in:
Thomas Sileo 2022-11-30 20:11:20 +01:00
parent 436d5ccf1b
commit a68b3e7318

View file

@ -39,6 +39,7 @@
{% endfor %}
</div>
{% if has_previous_page or has_next_page %}
<div class="box">
{% if has_previous_page %}
<a href="{{ url_for("index") }}?page={{ current_page - 1 }}">Previous</a>
@ -48,6 +49,7 @@
<a href="{{ url_for("index") }}?page={{ current_page + 1 }}">Next</a>
{% endif %}
</div>
{% endif %}
{% else %}
<div class="empty-state">