3 <div class="pagination">
4 {% block previouslink %}
5 {% if page_obj.has_previous %}
6 {% if display_link_for_first_page and page_obj.previous_page_number == 1 %}
7 <a href="{{ getvars }}" class="prev">{{ previous_link_decorator|safe }}{% trans "previous" %}</a>
9 <a href="?page{{ page_suffix }}={{ page_obj.previous_page_number }}{{ getvars }}" class="prev">{{ previous_link_decorator|safe }}{% trans "previous" %}</a>
12 {% if display_disabled_previous_link %}
13 <span class="disabled prev">{{ previous_link_decorator|safe }}{% trans "previous" %}</span>
16 {% endblock previouslink %}
18 {% if display_page_links %}
19 {% for page in pages %}
21 {% ifequal page page_obj.number %}
22 <span class="current page">{{ page }}</span>
24 {% if disable_link_for_first_page and page == 1 %}
25 <a href="{{ getvars }}" class="page">{{ page }}</a>
27 <a href="?page{{ page_suffix }}={{ page }}{{ getvars }}" class="page">{{ page }}</a>
35 {% endblock pagelinks %}
37 {% if page_obj.has_next %}
38 <a href="?page{{ page_suffix }}={{ page_obj.next_page_number }}{{ getvars }}" class="next">{% trans "next" %}{{ next_link_decorator|safe }}</a>
40 {% if display_disabled_next_link %}
41 <span class="disabled next">{% trans "next" %}{{ next_link_decorator|safe }}</span>
44 {% endblock nextlink %}