3 <div class="pagination">
4 {% if page_obj.has_previous %}
5 <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}{{ hashtag }}" class="prev">{{ previous_link_decorator }}{% trans "previous" %}</a>
7 {% if display_disabled_previous_link %}
8 <span class="disabled prev">{{ previous_link_decorator }}{% trans "previous" %}</span>
11 {% if display_page_links %}
12 {% for page in pages %}
14 {% ifequal page page_obj.number %}
15 <span class="current page">{{ page }}</span>
17 <a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a>
24 {% if page_obj.has_next %}
25 <a href="?page={{ page_obj.next_page_number }}{{ getvars }}{{ hashtag }}" class="next">{% trans "next" %}{{ next_link_decorator }}</a>
27 {% if display_disabled_next_link %}
28 <span class="disabled next">{% trans "next" %}{{ next_link_decorator }}</span>