takahe/templates/admin/_pagination.html

14 lines
523 B
HTML
Raw Normal View History

{% load activity_tags %}
<div class="pagination">
{% if page_obj.has_previous %}
2023-01-15 14:04:39 -08:00
<a class="button" href=".?{% urlparams page=page_obj.previous_page_number %}">Previous Page</a>
{% endif %}
{% if page_obj.paginator.count %}
2023-01-14 09:32:48 -08:00
<span class="count">{{ page_obj.paginator.count }} {{ page_obj.paginator.count|pluralize:nouns }}</span>
{% endif %}
{% if page_obj.has_next %}
2023-01-15 14:04:39 -08:00
<a class="button" href=".?{% urlparams page=page_obj.next_page_number %}">Next Page</a>
{% endif %}
</div>