{% extends "base.html" %} {% load pagination_links %} {% block title %} {{ block.super }} - {% block extra_title %}{% endblock extra_title %} {% endblock title %} {% block breadcrumb %} {% block extra_breadcrumb %} {% endblock extra_breadcrumb %} {% endblock breadcrumb %} {% block content %}
{% block h2_title %}
{% endblock h2_title %} {% block pagination %} {% if page_obj.has_other_pages %} {% get_pagination_links paginator page_obj as pagination_links %}

{% if page_obj.has_previous %} Back {% else %} Back {% endif %} {% for page_num in pagination_links %} {% if page_num.is_current %} {{ page_num.number }} {% elif page_num.is_filler %} … {% else %} {{ page_num.number }} {% endif %} {% endfor %} {% if page_obj.has_next %} {% else %} Next {% endif %}

{% endif %} {% endblock pagination %}
{% endblock content %}