{% load i18n wise_icons %} {% comment %} The pager under a list. Renders nothing at all when there is nothing to page through: an empty list already says so in its own empty state (see _no_data.html), and a "Page 1 / 1" pinned under that message is chrome with no job - both of its arrows are dead, and it pushes the one control that matters (the New button) further from the eye. {% endcomment %} {% if page_obj.paginator.count %}
{% if page_obj.has_previous %} {% lucide "chevrons-left" size=16 %} {% lucide "chevron-left" size=16 %}{% trans "Prev." %} {% else %} {% lucide "chevrons-left" size=16 %} {% lucide "chevron-left" size=16 %}{% trans "Prev." %} {% endif %}
{% trans "Page" %} {{ page_obj.number }} / {{ page_obj.paginator.num_pages }}
{% if page_obj.has_next %} {% trans "Next" %}{% lucide "chevron-right" size=16 %} {% lucide "chevrons-right" size=16 %} {% else %} {% trans "Next" %} {% lucide "chevron-right" size=16 %} {% lucide "chevrons-right" size=16 %} {% endif %}
{% endif %}