{% load i18n %} {% if is_paginated %}
{% if page_obj.has_previous %} {% trans "Previous" %} {% else %} {% trans "Previous" %} {% endif %} {% for page in pages %} {% if page %} {{ page }} {% else %} {% endif %} {% endfor %} {% if page_obj.has_next %} {% trans "Next" %} {% else %} {% trans "Next" %} {% endif %}
{% endif %}