2021-09-08 21:32:11 +00:00
|
|
|
{% extends 'settings/layout.html' %}
|
2021-03-08 23:49:44 +00:00
|
|
|
{% load i18n %}
|
|
|
|
|
2021-03-28 20:03:24 +00:00
|
|
|
{% block title %}
|
|
|
|
{% if server %}
|
2021-06-01 21:28:53 +00:00
|
|
|
{% blocktrans with instance_name=server.server_name %}Reports: {{ instance_name }}{% endblocktrans %}
|
2021-03-28 20:03:24 +00:00
|
|
|
{% else %}
|
|
|
|
{% trans "Reports" %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2021-04-17 17:56:26 +00:00
|
|
|
|
2021-03-28 20:03:24 +00:00
|
|
|
{% block header %}
|
|
|
|
{% if server %}
|
2021-06-01 21:28:53 +00:00
|
|
|
{% blocktrans with instance_name=server.server_name %}Reports: <small>{{ instance_name }}</small>{% endblocktrans %}
|
2021-03-28 20:03:24 +00:00
|
|
|
<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>
|
|
|
|
|
2021-09-28 20:07:57 +00:00
|
|
|
{% include 'settings/users/user_admin_filters.html' %}
|
2021-04-17 17:56:26 +00:00
|
|
|
|
2021-03-09 18:08:02 +00:00
|
|
|
<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 %}
|
2021-03-09 18:08:02 +00:00
|
|
|
<div class="block">
|
2021-09-28 19:41:07 +00:00
|
|
|
{% include 'settings/reports/report_preview.html' with report=report %}
|
2021-03-09 18:08:02 +00:00
|
|
|
</div>
|
2021-03-08 23:49:44 +00:00
|
|
|
{% endfor %}
|
2021-03-09 18:08:02 +00:00
|
|
|
</div>
|
2021-03-08 23:49:44 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|