3 <div class="pagination">
4 {% block previouslink %}
5 {% if page_obj.has_previous %}
6 <a href="?page{{ page_suffix }}={{ page_obj.previous_page_number }}{{ getvars }}" class="prev">{{ previous_link_decorator|safe }}{% trans "previous" %}</a>
8 {% if display_disabled_previous_link %}
9 <span class="disabled prev">{{ previous_link_decorator|safe }}{% trans "previous" %}</span>
12 {% endblock previouslink %}
14 {% if display_page_links %}
15 {% for page in pages %}
17 {% ifequal page page_obj.number %}
18 <span class="current page">{{ page }}</span>
20 <a href="?page{{ page_suffix }}={{ page }}{{ getvars }}" class="page">{{ page }}</a>
27 {% endblock pagelinks %}
29 {% if page_obj.has_next %}
30 <a href="?page{{ page_suffix }}={{ page_obj.next_page_number }}{{ getvars }}" class="next">{% trans "next" %}{{ next_link_decorator|safe }}</a>
32 {% if display_disabled_next_link %}
33 <span class="disabled next">{% trans "next" %}{{ next_link_decorator|safe }}</span>
36 {% endblock nextlink %}