SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit efcb3d43 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Add pagination to submission bottom list

parent f8ac203c
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
</p> </p>
{% endif %} {% endif %}
</div> </div>
<div class="col-12"> <div class="col-12">
<ul class="list-group list-group-flush"> <ul class="list-group list-group-flush">
{% for submission in object_list %} {% for submission in object_list %}
...@@ -76,6 +76,20 @@ ...@@ -76,6 +76,20 @@
{% else %} {% else %}
<h3>No match found for your search query.</h3> <h3>No match found for your search query.</h3>
{% endif %} {% endif %}
</div>
<div class="col-12">
{% if is_paginated %}
<p>
{% if page_obj.has_previous %}
<a href="?{% url_replace page=page_obj.previous_page_number %}">Previous</a>
{% endif %}
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
{% if page_obj.has_next %}
<a href="?{% url_replace page=page_obj.next_page_number %}">Next</a>
{% endif %}
</p>
{% endif %}
</div> </div>
</div> </div>
......
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