diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-11 03:29:33 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-11 03:29:38 +0100 |
| commit | 31b8a7931bdb95b296e236c11705206507b035d8 (patch) | |
| tree | dafcdca8f5dea95a326c08125f7d035be812ddd9 /app/templates/admin/audit.html | |
| parent | a4dd4f04293b6ad6dab5d3dc0a4c52a3290b4394 (diff) | |
| download | cheatdb-31b8a7931bdb95b296e236c11705206507b035d8.tar.xz | |
Add ability for moderators to delete comments
Diffstat (limited to 'app/templates/admin/audit.html')
| -rw-r--r-- | app/templates/admin/audit.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/templates/admin/audit.html b/app/templates/admin/audit.html index 4255b72..1ac793b 100644 --- a/app/templates/admin/audit.html +++ b/app/templates/admin/audit.html @@ -9,7 +9,13 @@ Audit Log <div class="list-group mt-3"> {% for entry in log %} - <a class="list-group-item list-group-item-action" href="{{ entry.url }}"> + <a class="list-group-item list-group-item-action" + {% if entry.description %} + href="{{ url_for('admin.audit_view', id=entry.id) }}"> + {% else %} + href="{{ entry.url }}"> + {% endif %} + <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 %} @@ -30,6 +36,10 @@ Audit Log <div class="col-sm"> {{ entry.title}} + + {% if entry.description %} + <i class="fas fa-paperclip ml-3"></i> + {% endif %} </div> {% if entry.package %} @@ -54,5 +64,5 @@ Audit Log {% else %} <p class="list-group-item"><i>No audit log entires.</i></p> {% endfor %} - </ul> + </div> {% endblock %} |
