feat: add pagination element below comments

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

Issue report: #390

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2022-11-28 17:01:44 +01:00
parent 8027ff936c
commit 2b8dedb3a2
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
2 changed files with 12 additions and 0 deletions

View file

@ -45,5 +45,12 @@
{% for comment in comments.all() %} {% for comment in comments.all() %}
{% include "partials/packages/comment.html" %} {% include "partials/packages/comment.html" %}
{% endfor %} {% endfor %}
<div class="comments-footer">
{% if pages > 1 %}
<p class="comments-footer-nav">
{{ page | pager_nav(comments_total, prefix) | safe }}
</p>
{% endif %}
</div>
</div> </div>
{% endif %} {% endif %}

View file

@ -193,6 +193,11 @@ label.confirmation {
align-self: flex-end; align-self: flex-end;
} }
.comments-footer {
display: flex;
justify-content: flex-end;
}
.comment-header { .comment-header {
clear: both; clear: both;
font-size: 1em; font-size: 1em;