{% load i18n lucide %} {% comment %} Shared pager for every paginated management list (see paginate_by on MemberListView/EventListView/TeamListView/GroupListView/NewsListView/ FamilyListView) -- {% include %} this once rather than duplicating prev/next markup per template. Expects the standard ListView pagination context (page_obj/paginator/is_paginated); renders nothing on an unpaginated page. {% querystring %} (built-in since Django 5.1) rebuilds the current query string with just `page` overridden, so an active ?q=/?kind=/?season= filter survives a page link instead of being dropped. {% endcomment %} {% if is_paginated %}
{% blocktrans with number=page_obj.number total=paginator.num_pages %}Page {{ number }} of {{ total }}{% endblocktrans %}
{% if page_obj.has_previous %} {% lucide "chevron-left" size=14 %} {% trans "Previous" %} {% else %} {% lucide "chevron-left" size=14 %} {% trans "Previous" %} {% endif %} {% if page_obj.has_next %} {% trans "Next" %} {% lucide "chevron-right" size=14 %} {% else %} {% trans "Next" %} {% lucide "chevron-right" size=14 %} {% endif %}
{% endif %}