{% extends "base.html" %} {% load static pagination_links colour_tags %} {% block content %}
{% 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 %} Next {% else %} Next {% endif %}
{% endif %}