SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 026c6e48 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Simple paginator debug

parent 392f11c4
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,15 @@ event: "focusin" ...@@ -21,6 +21,15 @@ event: "focusin"
{% block content %} {% block content %}
<div class="rol">
<div class="col-12">
{% for page in reports.paginator.page_range %}
{% if forloop.counter != 1 %} | {% endif %}
{{ page }}
{% endfor %}
</div>
</div>
<table class="table table-hover mb-5"> <table class="table table-hover mb-5">
<thead class="thead-default"> <thead class="thead-default">
...@@ -93,26 +102,15 @@ event: "focusin" ...@@ -93,26 +102,15 @@ event: "focusin"
</tbody> </tbody>
</table> </table>
{% if is_paginated %}
<div class="col-12"> <div class="rol">
{% include 'partials/pagination.html' with page_obj=page_obj %} <div class="col-12">
</div> {% for page in reports.paginator.page_range %}
{% endif %} {% if forloop.counter != 1 %} | {% endif %}
{{ page }}
<div class="pagination"> {% endfor %}
<span class="step-links"> </div>
{% if reports.has_previous %}
<a href="?page={{ reports.previous_page_number }}">previous</a>
{% endif %}
<span class="current">
Page {{ reports.number }} of {{ reports.paginator.num_pages }}.
</span>
{% if reports.has_next %}
<a href="?page={{ reports.next_page_number }}">next</a>
{% endif %}
</span>
</div> </div>
{% endblock content %} {% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment