2022-12-17 13:45:31 -08:00
|
|
|
{% extends "settings/base.html" %}
|
|
|
|
{% load activity_tags %}
|
|
|
|
|
|
|
|
{% block subtitle %}Reports{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<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-10 19:31:50 -08:00
|
|
|
<table class="items">
|
2022-12-17 13:45:31 -08:00
|
|
|
{% for report in page_obj %}
|
2023-01-10 19:31:50 -08:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<a href="{{ report.urls.admin_view }}" class="overlay"></a>
|
|
|
|
<img src="{{ report.subject_identity.local_icon_url.relative }}" class="icon" alt="Avatar for {{ report.subject_identity.name_or_handle }}">
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
|
|
|
<a href="{{ report.urls.admin_view }}" class="overlay"></a>
|
2022-12-17 13:45:31 -08:00
|
|
|
{{ report.subject_identity.html_name_or_handle }}
|
|
|
|
{% if report.subject_post %}
|
2023-01-10 19:31:50 -08:00
|
|
|
<small>
|
|
|
|
Post on {{ report.subject_post.published }}
|
|
|
|
</small>
|
2022-12-17 13:45:31 -08:00
|
|
|
{% endif %}
|
2023-01-10 19:31:50 -08: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 13:45:31 -08:00
|
|
|
{% empty %}
|
2023-01-10 19:31:50 -08:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
There are no {% if all %}reports yet{% else %}unresolved reports{% endif %}.
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-17 13:45:31 -08:00
|
|
|
{% endfor %}
|
2023-01-10 19:31:50 -08:00
|
|
|
</table>
|
|
|
|
<div class="pagination">
|
|
|
|
{% if page_obj.has_previous %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.previous_page_number }}{% if all %}&all=true{% endif %}">Previous Page</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if page_obj.paginator.count %}
|
|
|
|
<span class="count">{{ page_obj.paginator.count }} report{{page_obj.paginator.count|pluralize }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if page_obj.has_next %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.next_page_number }}{% if all %}&all=true{% endif %}">Next Page</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-12-17 13:45:31 -08:00
|
|
|
{% endblock %}
|