Skip to content
Snippets Groups Projects
Verified Commit 2b8dedb3 authored by Mario Oenning's avatar Mario Oenning
Browse files

feat: add pagination element below comments


other pages like the "package search" have this as well.

Issue report: #390

Signed-off-by: default avatarmoson-mo <mo-son@mailbox.org>
parent 8027ff93
No related branches found
No related tags found
No related merge requests found
......@@ -45,5 +45,12 @@
{% for comment in comments.all() %}
{% include "partials/packages/comment.html" %}
{% endfor %}
<div class="comments-footer">
{% if pages > 1 %}
<p class="comments-footer-nav">
{{ page | pager_nav(comments_total, prefix) | safe }}
</p>
{% endif %}
</div>
</div>
{% endif %}
......@@ -193,6 +193,11 @@ label.confirmation {
align-self: flex-end;
}
.comments-footer {
display: flex;
justify-content: flex-end;
}
.comment-header {
clear: both;
font-size: 1em;
......
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