diff --git a/web/templates/tools/audit_log.html b/web/templates/tools/audit_log.html new file mode 100644 index 0000000..2665b40 --- /dev/null +++ b/web/templates/tools/audit_log.html @@ -0,0 +1,108 @@ +{% extends "base.html" %} +{% block title %}Audit Log (latest 100){% endblock %} +{% block body_class %}themed-bg{% endblock %} + +{% block content %} +
| Date / Time | +Entry | +Action & Changes | +User | +
|---|---|---|---|
| {{ r.timestamp|date:"Y-m-d H:i:s" }} | ++ {% if r.action == "delete" %} + #{{ r.entry_id }} + {% else %} + #{{ r.entry_id }} + {% endif %} + | +
+ {% if r.action == "create" %}
+ Created
+ {% elif r.action == "update" %}
+ Updated
+ {% else %}
+ Deleted
+ {% endif %}
+
+ {% if r.action == "update" and r.changes %}
+
+
+ {% elif r.action == "delete" and r.changes.__deleted__ %}
+ Show created fields+
+
+ {% endif %}
+ Deleted record snapshot+
|
+ {{ r.username|default:"—" }} | +
| No audit entries yet. | |||