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:
rimu 2024-08-19 19:01:03 +00:00
commit fb40cc28b3

View file

@ -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">&larr;</span> {{ _('Previous page') }}
</a>
{% endif %}
{% if next_url %}
<a href="{{ next_url }}" class="btn btn-primary">
{{ _('Next page') }} <span aria-hidden="true">&rarr;</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">&larr;</span> {{ _('Previous page') }}
</a>
{% endif %}
{% if next_url_replies %}
<a href="{{ next_url_replies }}" class="btn btn-primary">
{{ _('Next page') }} <span aria-hidden="true">&rarr;</span>
</a>
{% endif %}
</nav>
{% else %}
<p>{{ _('No comments yet.') }}</p>
{% endif %}