mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add pagination to admin deleted content view
This commit is contained in:
parent
db6e198457
commit
9ae5c94f93
1 changed files with 24 additions and 0 deletions
|
@ -17,6 +17,18 @@
|
|||
<p>{{ _('No deleted posts.') }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
||||
{% if prev_url %}
|
||||
<a href="{{ prev_url }}" class="btn btn-primary">
|
||||
<span aria-hidden="true">←</span> {{ _('Previous page') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if next_url %}
|
||||
<a href="{{ next_url }}" class="btn btn-primary">
|
||||
{{ _('Next page') }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% if post_replies %}
|
||||
<h2 class="mt-4" id="comments">Deleted comments</h2>
|
||||
<div class="post_list">
|
||||
|
@ -29,6 +41,18 @@
|
|||
<p>{{ _('No deleted comments.') }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
||||
{% if prev_url_replies %}
|
||||
<a href="{{ prev_url_replies }}" class="btn btn-primary">
|
||||
<span aria-hidden="true">←</span> {{ _('Previous page') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if next_url_replies %}
|
||||
<a href="{{ next_url_replies }}" class="btn btn-primary">
|
||||
{{ _('Next page') }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% else %}
|
||||
<p>{{ _('No comments yet.') }}</p>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue