{% load admin_list %} {% load i18n %}
{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %} {{ cl.opts.verbose_name_plural }}{% endif %} {% if show_all_url %}{% translate 'Show all' %}{% endif %} {% if cl.formset and cl.result_count %} {% endif %}
{% if pagination_required %}
    {# Previous Link #} {% if cl.page_num > 1 %}
  • Previous
  • {% else %}
  • Previous
  • {% endif %} {# Display 2 pages before and 2 pages after the current page #} {% for i in cl.paginator.page_range %} {% if i >= cl.page_num|add:"-2" and i <= cl.page_num|add:"2" %} {% if i == cl.page_num %}
  • {{ i }}
  • {% else %}
  • {{ i }}
  • {% endif %} {% endif %} {% endfor %} {# Next Link #} {% if cl.page_num < cl.paginator.num_pages %}
  • Next
  • {% else %}
  • Next
  • {% endif %}
{% endif %}