kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
feat: Style the pagination
rodzic
046076d1e5
commit
c2b5c1ad69
|
@ -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 %}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue