mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
8027ff936c
commit
2b8dedb3a2
2 changed files with 12 additions and 0 deletions
|
@ -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 %}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue