{% load i18n main_extras %}
{% if first.show %}
  <a href="?{% page_url 1 %}" class="first">1</a>
  {% if first.dots %}<span>…</span>{% endif %}
{% endif %}
{% for page in pages %}
  <a href="?{% page_url page.number %}"
     {% if page.current %}class="cur"{% endif %}>{{ page.number }}</a>
{% endfor %}
{% if last.show %}
  {% if last.dots %}<span>…</span>{% endif %}
  <a href="?{% page_url last.number %}" class="last">{{ last.number }}</a>
{% endif %}
