Dead links reporting.
[wolnelektury.git] / apps / wolnelektury_core / templates / pagination / pagination.html
1 {% load i18n %}
2 {% if is_paginated %}
3 <div class="pagination">
4     {% if page_obj.has_previous %}
5         <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}" class="prev">&lsaquo;&lsaquo; {% trans "previous" %} </a>
6     {% else %}
7         <span class="disabled prev">&lsaquo;&lsaquo; {% trans "previous" %} </span>
8     {% endif %}
9     {% for page in pages %}
10         {% if page %}
11             {% ifequal page page_obj.number %}
12                 <span class="current page"> {{ page }} </span>
13             {% else %}
14                 <a href="?page={{ page }}{{ getvars }}" class="page"> {{ page }} </a>
15             {% endifequal %}
16         {% else %}
17             ...
18         {% endif %}
19     {% endfor %}
20     {% if page_obj.has_next %}
21         <a href="?page={{ page_obj.next_page_number }}{{ getvars }}" class="next"> {% trans "next" %} &rsaquo;&rsaquo;</a>
22     {% else %}
23         <span class="disabled next"> {% trans "next" %} &rsaquo;&rsaquo;</span>
24     {% endif %}
25 </div>
26 {% endif %}