From 46646590a93c62229834621fbb5ef68c527980f6 Mon Sep 17 00:00:00 2001
From: rimu <3310831+rimu@users.noreply.github.com>
Date: Sat, 23 Dec 2023 11:30:27 +1300
Subject: [PATCH] activitypub log for admins
---
app/templates/admin/activities.html | 16 +++++++++++++++-
app/templates/admin/activity_json.html | 16 ++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
create mode 100644 app/templates/admin/activity_json.html
diff --git a/app/templates/admin/activities.html b/app/templates/admin/activities.html
index 5b77d834..e88414fb 100644
--- a/app/templates/admin/activities.html
+++ b/app/templates/admin/activities.html
@@ -28,14 +28,28 @@
{{ activity.activity_type if activity.activity_type else '' }} |
{% if activity.result == 'success' %}
{{ activity.result }} |
+ {% elif activity.result == 'ignored' %}
+ {{ activity.result }} |
{% else %}
{{ activity.result }} |
{% endif %}
{{ activity.exception_message if activity.exception_message else '' }} |
- |
+ View |
{% endfor %}
+
{% endblock %}
\ No newline at end of file
diff --git a/app/templates/admin/activity_json.html b/app/templates/admin/activity_json.html
new file mode 100644
index 00000000..5e7ea553
--- /dev/null
+++ b/app/templates/admin/activity_json.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% from 'bootstrap/form.html' import render_form %}
+
+{% block app_content %}
+
+
+ {% include 'admin/_nav.html' %}
+
+
+
+
+
+
{{ activity_json_data | tojson(indent=2) }}
+
+
+{% endblock %}
\ No newline at end of file