timbresXcliente paginator correct
This commit is contained in:
@@ -39,44 +39,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% if lista.has_other_pages %}
|
||||
<nav>
|
||||
<ul class="pagination justify-content-center">
|
||||
{% if lista.has_previous %}
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="?page={{ lista.previous_page_number }}" aria-label="Previous">
|
||||
<span aria-hidden="true">«</span>
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="page-item disabled">
|
||||
<span class="page-link" aria-hidden="true">«</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% for p in lista.paginator.page_range %}
|
||||
{% if lista.number == p %}
|
||||
<li class="page-item"><a class="page-link" style="color: red;" href="#">{{ p }}</a></li>
|
||||
{% else %}
|
||||
<li class="page-item"><a class="page-link" href="?page={{ p }}">{{ p }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if lista.has_next %}
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="?page={{ lista.next_page_number }}" aria-label="Next">
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="page-item disabled">
|
||||
<span class="page-link" aria-hidden="true">»</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user