|
1
2
3
|
{% load i18n %}
{% if is_paginated %}
|
|
4
5
6
7
8
9
|
<div class="paginer-links">
{% if page_obj.has_previous %}
<a class="link prev">
<span class="page_nr">{{ page_obj.previous_page_number }}</span>
‹‹ {% trans "previous" %}
</a>
|
|
10
|
{% else %}
|
|
11
12
13
14
15
16
17
|
<span class="disabled prev">‹‹ {% trans "previous" %}</span>
{% endif %}
{% for page in pages %}
{% if page %}
{% ifequal page page_obj.number %}
<span class="current page">{{ page }}</span>
{% else %}
|
|
18
19
|
<a class="link page">
<span class="page_nr">{{ page }}</span></a>
|
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{% endifequal %}
{% else %}
...
{% endif %}
{% endfor %}
{% if page_obj.has_next %}
<a class="link next">
<span class="page_nr">{{ page_obj.next_page_number }}</span>
{% trans "next" %} ››
</a>
{% else %}
<span class="disabled next">{% trans "next" %} ››</span>
{% endif %}
</div>
|
|
34
|
{% endif %}
|