First pass at views for reporting
This commit is contained in:
27
bookwyrm/templates/settings/reports.html
Normal file
27
bookwyrm/templates/settings/reports.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends 'settings/admin_layout.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block header %}{% trans "Reports" %}{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li class="{% if filter == 'open' %}is-active{% endif %}"{% if filter == 'open' %} aria-current="page"{% endif %}>
|
||||
<a href="{% url 'settings-reports' %}?status=open">{% trans "Open" %}</a>
|
||||
</li>
|
||||
<li class="{% if filter == 'resolved' %}is-active{% endif %}"{% if filter == 'resolved' %} aria-current="page"{% endif %}>
|
||||
<a href="{% url 'settings-reports' %}?status=closed">{% trans "Resolved" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
{% for report in reports %}
|
||||
<li class="card">
|
||||
{% include 'settings/report_preview.html' with report=report %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user