Fix: Editing nodes with XNodeAttributes might lead to data corruption
[redakcja.git] / redakcja / templates / pagination / pagination.html
1 {% if is_paginated %}
2 {% load i18n %}
3 <div class="pagination">
4     {% if page_obj.has_previous %}
5         <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}{{ hashtag }}" 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 }}{{ hashtag }}" 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 }}{{ hashtag }}" 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 %}