feat: Style the pagination

ila
Aonrud 2023-01-12 13:13:47 +00:00
rodzic 046076d1e5
commit c2b5c1ad69
1 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -48,14 +48,15 @@
</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>
{% endif %}
{% if has_next_page %}
<a href="{{ url_for("index") }}?page={{ current_page + 1 }}">Next</a>
{% endif %}
<div class="text-center">
<ul class="pagination">
<li class="{% if not has_previous_page %}disabled{% endif %}">
<a href="{% if has_previous_page %}{{ url_for("index") }}?page={{ current_page - 1 }}{% endif %}"><span class="fas fa-arrow-left"></span> Previous</a>
</li>
<li class="{% if not has_next_page%}disabled{% endif %}">
<a href="{% if has_next_page%}{{ url_for("index") }}?page={{ current_page + 1 }}{% endif %}">Next <span class="fas fa-arrow-right"></span></a>
</li>
</ul>
</div>
{% endif %}