{% load i18n %} {% load paginator %} {% if is_paginated %} {% blocktrans with page_obj.start_index as first_on_page and page_obj.end_index as last_on_page and paginator.count as hits and page_obj.number as page and paginator.num_pages as pages %} {{ first_on_page }}-{{ last_on_page }} of {{ hits }} on page {{ page }} / {{ pages }}
{% endblocktrans %} {% if show_first %} {% if url %} 1   {% else %} 1   {% endif %} {% endif %} {% for p in page_numbers %} {% if url %} {% ifequal p page_obj.number %}{{ p }}{% else %}{{ p }}{% endifequal %} {% else %} {% ifequal p page_obj.number %}{{ p }}{% else %}{{ p }}{% endifequal %} {% endif %} {% if not forloop.last %} |{% endif %} {% endfor %} {% if show_last %} {% if url %}   {{ paginator.num_pages }} {% else %}   {{ paginator.num_pages }} {% endif %} {% endif %} {% endif %}