mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
{% if is_paginated %}
|
|
<nav class="pagination-centered">
|
|
<ul class="pagination">
|
|
{% if page_obj.has_previous %}
|
|
<li>
|
|
<a href="?page={{ page_obj.previous_page_number }}">
|
|
<span class="arrow">«</span>
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="arrow unavailable"><a href="">«</a></li>
|
|
{% endif %}
|
|
|
|
{% for page in page_range %}
|
|
{% if page == None or page == 'None' %}
|
|
...
|
|
{% else %}
|
|
<li {% if page == page_obj.number %} class="active current" {% endif %}>
|
|
<a href="?page={{ page }}">{{ page }}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if page_obj.has_next %}
|
|
<li>
|
|
<a href="?page={{ page_obj.next_page_number }}">
|
|
<span class="arrow">»</span>
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="arrow unavailable"><a href="">»</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|