<liclass="page-item{% if not page_obj.has_previous %} disabled{% endif %}"><aclass="page-link"href="?page={% if page_obj.has_previous %}{{ page_obj.previous_page_number }}{% else %}1{% endif %}"aria-label="{% trans "Páginaanterior"%}"><iclass="bi bi-chevron-double-left"></i></a></li>
<liclass="page-item{% if not page_obj.has_previous %} disabled{% endif %}"><aclass="page-link"href="?page=1"aria-label="{% trans "Primeirapágina"%}"title="{% trans "Primeirapágina"%}"><iclass="bi bi-chevron-double-left"></i></a></li>
<liclass="page-item{% if not page_obj.has_previous %} disabled{% endif %}"><aclass="page-link"href="?page={% if page_obj.has_previous %}{{ page_obj.previous_page_number }}{% else %}1{% endif %}"aria-label="{% trans "Páginaanterior"%}"title="{% trans "Páginaanterior"%}"><iclass="bi bi-chevron-left"></i></a></li>
{% for page in paginator.page_range %}
{% for page in paginator.page_range %}
{% with minor=page_obj.number|add:"-3" major=page_obj.number|add:"3" %}
<liclass="page-item{% if not page_obj.has_next %} disabled{% endif %}"><aclass="page-link"href="?page={% if page_obj.has_next %}{{ page_obj.next_page_number }}{% else %}1{% endif %}"aria-label="{% trans "Próximapágina"%}"><iclass="bi bi-chevron-double-right"></i></a></li>
<liclass="page-item{% if not page_obj.has_next %} disabled{% endif %}"><aclass="page-link"href="?page={% if page_obj.has_next %}{{ page_obj.next_page_number }}{% else %}{{ page_obj.paginator.num_pages }}{% endif %}"aria-label="{% trans "Próximapágina"%}"title="{% trans "Próximapágina"%}"><iclass="bi bi-chevron-right"></i></a></li>
<liclass="page-item{% if not page_obj.has_next %} disabled{% endif %}"><aclass="page-link"href="?page={{ page_obj.paginator.num_pages }}"aria-label="{% trans "Últimapágina"%}"title="{% trans "Últimapágina"%}"><iclass="bi bi-chevron-double-right"></i></a></li>