summaryrefslogtreecommitdiffstats
path: root/templates/admin/reports.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-17 14:45:31 -0700
committerAndrew Godwin2022-12-17 14:45:31 -0700
commite8d6dccbb27a8611311b5f94f593b69bcca99528 (patch)
tree440901d8495f29e682d5fd08bb3ee4e44e983505 /templates/admin/reports.html
parentb3b2c6effdd747db9076b3139963965f4718eee9 (diff)
downloadtakahe-e8d6dccbb27a8611311b5f94f593b69bcca99528.tar.gz
takahe-e8d6dccbb27a8611311b5f94f593b69bcca99528.tar.bz2
takahe-e8d6dccbb27a8611311b5f94f593b69bcca99528.zip
Report function and admin
Diffstat (limited to 'templates/admin/reports.html')
-rw-r--r--templates/admin/reports.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/admin/reports.html b/templates/admin/reports.html
new file mode 100644
index 0000000..1634443
--- /dev/null
+++ b/templates/admin/reports.html
@@ -0,0 +1,43 @@
+{% 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>
+ <section class="icon-menu">
+ {% for report in page_obj %}
+ <a class="option" href="{{ report.urls.admin_view }}">
+ <img src="{{ report.subject_identity.local_icon_url.relative }}" class="icon" alt="Avatar for {{ report.subject_identity.name_or_handle }}">
+ <span class="handle">
+ {{ report.subject_identity.html_name_or_handle }}
+ {% if report.subject_post %}
+ (post {{ report.subject_post.pk }})
+ {% endif %}
+ <small>
+ {{ report.type|title }}
+ </small>
+ </span>
+ <time>{{ report.created|timedeltashort }} ago</time>
+ </a>
+ {% empty %}
+ <p class="option empty">
+ There are no {% if all %}reports yet{% else %}unresolved reports{% endif %}.
+ </p>
+ {% endfor %}
+ <div class="load-more">
+ {% if page_obj.has_previous %}
+ <a class="button" href=".?page={{ page_obj.previous_page_number }}{% if all %}&amp;all=true{% endif %}">Previous Page</a>
+ {% endif %}
+ {% if page_obj.has_next %}
+ <a class="button" href=".?page={{ page_obj.next_page_number }}{% if all %}&amp;all=true{% endif %}">Next Page</a>
+ {% endif %}
+ </div>
+ </section>
+{% endblock %}