moviewyrm/bookwyrm/templates/snippets/pagination.html

21 lines
620 B
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
<nav class="pagination" role="navigation" aria-label="pagination">
{% if page.has_previous %}
<p class="pagination-previous">
<a href="{{ path }}?page={{ page.previous_page_number }}{{ anchor }}">
<span class="icon icon-arrow-left"></span>
2021-02-28 02:48:10 +00:00
{% trans "Previous" %}
</a>
</p>
{% endif %}
{% if page.has_next %}
<p class="pagination-next">
<a href="{{ path }}?page={{ page.next_page_number }}{{ anchor }}">
2021-02-28 02:48:10 +00:00
{% trans "Next" %}
<span class="icon icon-arrow-right"></span>
</a>
</p>
{% endif %}
</nav>