moviewyrm/bookwyrm/templates/moderation/reports.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2021-03-08 23:49:44 +00:00
{% extends 'settings/admin_layout.html' %}
{% load i18n %}
2021-03-28 20:03:24 +00:00
{% block title %}
{% if server %}
{% blocktrans with server_name=server.server_name %}Reports: {{ server_name }}{% endblocktrans %}
{% else %}
{% trans "Reports" %}
{% endif %}
{% endblock %}
{% block header %}
{% if server %}
{% blocktrans with server_name=server.server_name %}Reports: <small>{{ server_name }}</small>{% endblocktrans %}
<a href="{% url 'settings-reports' %}" class="help has-text-weight-normal">Clear filters</a>
{% else %}
{% trans "Reports" %}
{% endif %}
{% endblock %}
2021-03-08 23:49:44 +00:00
{% block panel %}
<div class="tabs">
<ul>
2021-03-09 20:35:07 +00:00
<li class="{% if not resolved %}is-active{% endif %}"{% if not resolved == 'open' %} aria-current="page"{% endif %}>
<a href="{% url 'settings-reports' %}?resolved=false">{% trans "Open" %}</a>
2021-03-08 23:49:44 +00:00
</li>
2021-03-09 20:35:07 +00:00
<li class="{% if resolved %}is-active{% endif %}"{% if resolved %} aria-current="page"{% endif %}>
<a href="{% url 'settings-reports' %}?resolved=true">{% trans "Resolved" %}</a>
2021-03-08 23:49:44 +00:00
</li>
</ul>
</div>
<div class="block">
2021-03-28 20:03:24 +00:00
{% if not reports %}
<em>{% trans "No reports found." %}</em>
{% endif %}
2021-03-08 23:49:44 +00:00
{% for report in reports %}
<div class="block">
{% include 'moderation/report_preview.html' with report=report %}
</div>
2021-03-08 23:49:44 +00:00
{% endfor %}
</div>
2021-03-08 23:49:44 +00:00
{% endblock %}