mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
Merge pull request 'The admin Deleted Content view is missing a pagination' (#303) from h3ndrik/pyfedi:deleted_pagination into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/303
This commit is contained in:
commit
fb40cc28b3
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