{% if is_paginated %} {% load i18n %}
{% if page_obj.has_previous %}
‹‹ {% trans "previous" %}
{% else %}
‹‹ {% trans "previous" %}
{% endif %} {% for page in pages %} {% if page %} {% ifequal page page_obj.number %}
{{ page }}
{% else %}
{{ page }}
{% endifequal %} {% else %} ... {% endif %} {% endfor %} {% if page_obj.has_next %}
{% trans "next" %} ››
{% else %}
{% trans "next" %} ››
{% endif %}
{% endif %}