mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Don't insert an empty div on the index when there's no pages
This commit is contained in:
parent
436d5ccf1b
commit
a68b3e7318
1 changed files with 10 additions and 8 deletions
|
@ -39,6 +39,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if has_previous_page or has_next_page %}
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{% if has_previous_page %}
|
{% if has_previous_page %}
|
||||||
<a href="{{ url_for("index") }}?page={{ current_page - 1 }}">Previous</a>
|
<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>
|
<a href="{{ url_for("index") }}?page={{ current_page + 1 }}">Next</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="empty-state">
|
<div class="empty-state">
|
||||||
|
|
Loading…
Reference in a new issue