gestiojeux/website/templates/partials/pagination.html
2021-01-05 22:10:21 +01:00

15 lines
564 B
HTML

{% if page_obj.has_other_pages %}
{% load url_params %}
<div class="pagination">
<a{% if page_obj.has_previous %} href="?{% replace_url_param request page=page_obj.previous_page_number %}"{% endif %}>
<i class="fa fa-arrow-left" aria-hidden="true"></i> Précédent
</a>
<div>
Page {{ page_obj.number }} sur {{ paginator.num_pages }}
</div>
<a{% if page_obj.has_next %} href="?{% replace_url_param request page=page_obj.next_page_number %}"{% endif %}>
Suivant <i class="fa fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
{% endif %}