{% extends "pagination/pagination.html" %} {% comment %} This template overrides one block of the shipped template of linaro-django-pagination to get a nice prequel to the pagination: (x - y of z modelsname). Involved: Custom filter in mainpage.templatetags.get_model_name {% endcomment %} {% load i18n %} {% load wl_extras %} {% block previouslink %} {{ page_obj.start_index }}{{ page_obj.end_index }} {% trans "of" %} {{ paginator.count }} {{ paginator.object_list.0 | get_model_name }}{{ paginator.count|pluralize }} {% if page_obj.has_previous %} {% if disable_link_for_first_page and page_obj.previous_page_number == 1 %} {% else %} {% endif %} {% else %} {% if display_disabled_previous_link %} {{ previous_link_decorator|safe }}{% trans "previous" %} {% endif %} {% endif %} {% endblock previouslink %}