2023-05-04 04:42:37 +00:00
|
|
|
{% extends "admin/base_main.html" %}
|
2022-12-17 21:45:31 +00:00
|
|
|
{% load activity_tags %}
|
|
|
|
|
|
|
|
{% block subtitle %}Reports{% endblock %}
|
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2022-12-17 21:45:31 +00:00
|
|
|
<div class="view-options">
|
|
|
|
{% if all %}
|
|
|
|
<a href="." class="selected"><i class="fa-solid fa-check"></i> Show Resolved</a>
|
|
|
|
{% else %}
|
|
|
|
<a href=".?all=true"><i class="fa-solid fa-xmark"></i> Show Resolved</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-01-11 03:31:50 +00:00
|
|
|
<table class="items">
|
2022-12-17 21:45:31 +00:00
|
|
|
{% for report in page_obj %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ report.urls.admin_view }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-11 03:31:50 +00:00
|
|
|
<img src="{{ report.subject_identity.local_icon_url.relative }}" class="icon" alt="Avatar for {{ report.subject_identity.name_or_handle }}">
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ report.urls.admin_view }}?page={{ page_obj.number }}" class="overlay"></a>
|
2022-12-17 21:45:31 +00:00
|
|
|
{{ report.subject_identity.html_name_or_handle }}
|
|
|
|
{% if report.subject_post %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<small>
|
|
|
|
Post on {{ report.subject_post.published }}
|
|
|
|
</small>
|
2022-12-17 21:45:31 +00:00
|
|
|
{% endif %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{{ report.type|title }}
|
|
|
|
<small>Type</small>
|
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{{ report.created|timedeltashort }}
|
|
|
|
<small>Reported</small>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-17 21:45:31 +00:00
|
|
|
{% empty %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
There are no {% if all %}reports yet{% else %}unresolved reports{% endif %}.
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-17 21:45:31 +00:00
|
|
|
{% endfor %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</table>
|
2023-01-13 22:54:21 +00:00
|
|
|
{% include "admin/_pagination.html" with nouns="report,reports" %}
|
2022-12-17 21:45:31 +00:00
|
|
|
{% endblock %}
|