{% if items and num_pages > 1 %}
{% if items.has_previous %} {% endif %} {% if show_first %} 1 ... {% endif %} {% for page in page_numbers %} {{ page }} {% endfor %} {% if show_last %} ... {{ num_pages }} {% endif %} {% if items.has_next %} {% endif %}
{% endif %}