{% with ppurl=primer_pagination_url|default:"" %}
{% if has_prev %} Previous {% else %} Previous {% endif %} {% for page in pages %} {% if page %} {% if page != current_page %} {{ page }} {% else %} {{ page }} {% endif %} {% else %} {% endif %} {% endfor %} {% if has_next %} {% else %} Next {% endif %}
{% endwith %}