{% load helpers %}
{% if page %} {% comment %} `role="status"` makes this a polite live region, so that paging through a list with HTMX -- which replaces this element rather than reloading the page -- announces the new range instead of changing silently. {% endcomment %}
Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}
{% if not exclude_controls %}
{% endif %} {% endif %} {% if not exclude_controls %}
{% for key, value_list in request.GET.lists %} {% if key != 'per_page' %} {% for value in value_list %} {% endfor %} {% endif %} {% endfor %} {% comment %} The visible "per page" text after this select is not associated with it, so without `aria-label` the control is announced with no name at all. {% endcomment %} per page
{% endif %} {% if paginator.num_pages > 1 and not exclude_controls %}
{% endif %}