add pagination to admin deleted content view

This commit is contained in:
Hendrik L 2024-08-19 11:17:44 +02:00
parent db6e198457
commit 9ae5c94f93

View file

@ -17,6 +17,18 @@
<p>{{ _('No deleted posts.') }}</p> <p>{{ _('No deleted posts.') }}</p>
{% endfor %} {% endfor %}
</div> </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 %} {% if post_replies %}
<h2 class="mt-4" id="comments">Deleted comments</h2> <h2 class="mt-4" id="comments">Deleted comments</h2>
<div class="post_list"> <div class="post_list">
@ -29,6 +41,18 @@
<p>{{ _('No deleted comments.') }}</p> <p>{{ _('No deleted comments.') }}</p>
{% endfor %} {% endfor %}
</div> </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 %} {% else %}
<p>{{ _('No comments yet.') }}</p> <p>{{ _('No comments yet.') }}</p>
{% endif %} {% endif %}