Add audit log to account settings page

This commit is contained in:
rubenwardy
2020-12-09 19:59:14 +00:00
parent 58e1b924ca
commit d5190b0d76
4 changed files with 78 additions and 70 deletions

View File

@@ -59,6 +59,11 @@
</tr>
</table>
<h3>{{ _("Recent Account Actions") }}</h3>
{% from "macros/audit_log.html" import render_audit_log %}
{{ render_audit_log(user.audit_log_entries.limit(10).all(), show_view=True) }}
<h3>{{ _("Account Deletion and Deactivation") }}</h3>
{% if current_user.rank.atLeast(current_user.rank.ADMIN) %}