mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-14 11:21:13 +00:00
48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
{% extends "admin/base_main.html" %}
|
|
{% load activity_tags %}
|
|
|
|
{% block subtitle %}Reports{% endblock %}
|
|
|
|
{% block settings_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>
|
|
<table class="items">
|
|
{% for report in page_obj %}
|
|
<tr>
|
|
<td class="icon">
|
|
<a href="{{ report.urls.admin_view }}?page={{ page_obj.number }}" 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 }}?page={{ page_obj.number }}" class="overlay"></a>
|
|
{{ report.subject_identity.html_name_or_handle }}
|
|
{% if report.subject_post %}
|
|
<small>
|
|
Post on {{ report.subject_post.published }}
|
|
</small>
|
|
{% endif %}
|
|
</td>
|
|
<td class="stat">
|
|
{{ report.type|title }}
|
|
<small>Type</small>
|
|
</td>
|
|
<td class="stat">
|
|
{{ report.created|timedeltashort }}
|
|
<small>Reported</small>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr class="empty">
|
|
<td>
|
|
There are no {% if all %}reports yet{% else %}unresolved reports{% endif %}.
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% include "admin/_pagination.html" with nouns="report,reports" %}
|
|
{% endblock %}
|