♻️ refactor: use consistent pagination

This commit is contained in:
welpo
2023-03-05 19:48:16 +01:00
parent 6938ae42f9
commit a8e49cfedf
4 changed files with 46 additions and 39 deletions

View File

@@ -18,18 +18,6 @@
</main>
{% if paginator %}
<div class="pagination">
{% if paginator.previous %}
<span class="page-item page-prev">
<a href={{ paginator.previous }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
</span>
{% endif %}
{% if paginator.next %}
<span class="page-item page-next">
<a href={{ paginator.next }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
</span>
{% endif %}
</div>
{{ macros_paginate::paginate() }}
{% endif %}
{% endblock main_content %}