pyfedi/app/templates/admin/posts.html

39 lines
1.3 KiB
HTML
Raw Normal View History

2024-02-29 18:20:12 +13:00
{% 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 %}
2024-04-14 20:05:40 +12:00
{% set active_child = 'admin_content_trash' %}
2024-02-29 18:20:12 +13:00
{% block app_content %}
<div class="row">
<div class="col">
2024-04-14 20:05:40 +12:00
<h1>{{ _('Most downvoted posts in the last 3 days') }}</h1>
2024-02-29 18:20:12 +13:00
<div class="post_list">
{% for post in posts.items %}
{% include 'post/_post_teaser.html' %}
{% 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>
</div>
</div>
2024-04-14 20:05:40 +12:00
<hr />
<div class="row">
<div class="col">
{% include 'admin/_nav.html' %}
</div>
</div>
<hr />
2024-02-29 18:20:12 +13:00
{% endblock %}