mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
1 changed files with 15 additions and 13 deletions
@ -1,35 +1,37 @@ |
|||||
{% if is_paginated %} |
{% if is_paginated %} |
||||
<nav class="pagination-centered"> |
<div class="text-center"> |
||||
<ul class="pagination"> |
<ul class="pagination"> |
||||
{% if page_obj.has_previous %} |
{% if page_obj.has_previous %} |
||||
<li> |
<li class="page-item"> |
||||
<a href="?page={{ page_obj.previous_page_number }}"> |
<a class="page-link" href="?page={{ page_obj.previous_page_number }}"> |
||||
<span class="arrow">«</span> |
<span class="pager-prev">Anterior</span> |
||||
</a> |
</a> |
||||
</li> |
</li> |
||||
{% else %} |
{% else %} |
||||
<li class="arrow unavailable"><a href="">«</a></li> |
<li class="pager-prev disabled"><a href="">Anterior</a></li> |
||||
{% endif %} |
{% endif %} |
||||
|
|
||||
{% for page in page_range %} |
{% for page in page_range %} |
||||
{% if page == None or page == 'None' %} |
{% if page == None or page == 'None' %} |
||||
... |
<li class="page-item disabled"> |
||||
|
<a class="page-link" href="">...</a> |
||||
|
</li> |
||||
{% else %} |
{% else %} |
||||
<li {% if page == page_obj.number %} class="active current" {% endif %}> |
<li {% if page == page_obj.number %} class="page-item active" {% endif %}> |
||||
<a href="?page={{ page }}">{{ page }}</a> |
<a class="page-link" href="?page={{ page }}">{{ page }}</a> |
||||
</li> |
</li> |
||||
{% endif %} |
{% endif %} |
||||
{% endfor %} |
{% endfor %} |
||||
|
|
||||
{% if page_obj.has_next %} |
{% if page_obj.has_next %} |
||||
<li> |
<li class="page-item"> |
||||
<a href="?page={{ page_obj.next_page_number }}"> |
<a class="page-link" href="?page={{ page_obj.next_page_number }}"> |
||||
<span class="arrow">»</span> |
<span class="pager-next">Próxima</span> |
||||
</a> |
</a> |
||||
</li> |
</li> |
||||
{% else %} |
{% else %} |
||||
<li class="arrow unavailable"><a href="">»</a></li> |
<li class="pager-next disabled"><a href="">Próxima</a></li> |
||||
{% endif %} |
{% endif %} |
||||
</ul> |
</ul> |
||||
</nav> |
</div> |
||||
{% endif %} |
{% endif %} |
Loading…
Reference in new issue