{% if pagination.has_previous %} Previous {% endif %} {% if pagination.has_next %} Next {% endif %}
{% if pagination.page_controls|length > 1 %} {% for page_control in pagination.page_controls %} {% if page_control.number == pagination.page %} {% elif page_control.has_ellipsis %} ... {% else %} {{ page_control.number }} {% endif %} {% endfor %} {% endif %}