{% load i18n main_extras %} {% if first.show %} 1 {% if first.dots %}…{% endif %} {% endif %} {% for page in pages %} {{ page.number }} {% endfor %} {% if last.show %} {% if last.dots %}…{% endif %} {{ last.number }} {% endif %}