mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
68 lines
2.6 KiB
HTML
68 lines
2.6 KiB
HTML
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
{% else %}
|
|
{% extends "base.html" %}
|
|
{% endif %} %}
|
|
{% from 'bootstrap/form.html' import render_form %}
|
|
{% set active_child = 'admin_content_deleted' %}
|
|
|
|
{% block app_content %}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1>{{ _('Deleted posts') }}</h1>
|
|
<div class="post_list">
|
|
{% for post in posts.items %}
|
|
{% include 'post/_post_teaser.html' %}
|
|
{% else %}
|
|
<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">
|
|
{% for post_reply in post_replies.items %}
|
|
{% with teaser=True, disable_voting=True, no_collapse=True %}
|
|
{% include 'post/_post_reply_teaser.html' %}
|
|
{% endwith %}
|
|
<hr />
|
|
{% else %}
|
|
<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 %}
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col">
|
|
{% include 'admin/_nav.html' %}
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
{% endblock %}
|