moviewyrm/bookwyrm/templates/snippets/pagination.html

13 lines
746 B
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
<nav class="pagination" aria-label="pagination">
<a class="pagination-previous" {% if page.has_previous %}href="{{ path }}?{% for k, v in request.GET.items %}{% if k != 'page' %}{{ k }}={{ v }}&{% endif %}{% endfor %}page={{ page.previous_page_number }}{{ anchor }}" {% else %}disabled{% endif %}>
<span class="icon icon-arrow-left"></span>
{% trans "Previous" %}
</a>
<a class="pagination-next" {% if page.has_next %}href="{{ path }}?{% for k, v in request.GET.items %}{% if k != 'page' %}{{ k }}={{ v }}&{% endif %}{% endfor %}page={{ page.next_page_number }}{{ anchor }}"{% else %} disabled{% endif %}>
{% trans "Next" %}
<span class="icon icon-arrow-right"></span>
</a>
</nav>