diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-11 02:32:17 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-11 02:32:17 +0100 |
| commit | a4dd4f04293b6ad6dab5d3dc0a4c52a3290b4394 (patch) | |
| tree | 8e56f86e0318bd41266ad4cf9178269fe6da4dbb /app/templates/admin | |
| parent | bf927c50f00bd15c7bc1765b7d5fb0c6a6abeb86 (diff) | |
| download | cheatdb-a4dd4f04293b6ad6dab5d3dc0a4c52a3290b4394.tar.xz | |
Add audit log
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/audit.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app/templates/admin/audit.html b/app/templates/admin/audit.html new file mode 100644 index 0000000..4255b72 --- /dev/null +++ b/app/templates/admin/audit.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} + +{% block title %} +Audit Log +{% endblock %} + +{% block content %} + <h1>Audit Log</h1> + + <div class="list-group mt-3"> + {% for entry in log %} + <a class="list-group-item list-group-item-action" href="{{ entry.url }}"> + <div class="row {% if entry.severity == entry.severity.NORMAL %}text-muted{% endif %}"> + <div class="col-sm-auto text-center" style="width: 50px;"> + {% if entry.severity == entry.severity.MODERATION %} + <i class="fas fa-exclamation-triangle" style="color: yellow;"></i> + {% elif entry.severity == entry.severity.EDITOR %} + <i class="fas fa-users" style="color: #537eac;"></i> + {% endif %} + </div> + + <div class="col-sm-2 text-muted"> + <img + class="img-responsive user-photo img-thumbnail img-thumbnail-1" + style="max-height: 22px;" + src="{{ entry.causer.getProfilePicURL() }}" /> + + <span class="pl-2">{{ entry.causer.display_name }}</span> + </div> + + <div class="col-sm"> + {{ entry.title}} + </div> + + {% if entry.package %} + <div class="col-sm-auto text-muted"> + <span class="pr-2"> + {{ entry.package.title }} + </span> + + <img + class="img-responsive" + style="max-height: 22px; max-width: 22px;" + src="{{ entry.package.getThumbnailURL(1) }}" /> + </div> + {% endif %} + + + <div class="col-sm-auto text-muted"> + {{ entry.created_at | datetime }} + </div> + </div> + </a> + {% else %} + <p class="list-group-item"><i>No audit log entires.</i></p> + {% endfor %} + </ul> +{% endblock %} |
