]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/admin/audit.html
4255b72e4903bebc52dcef7aad35f2391d7255ca
[cheatdb.git] / app / templates / admin / audit.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 Audit Log
5 {% endblock %}
6
7 {% block content %}
8         <h1>Audit Log</h1>
9
10         <div class="list-group mt-3">
11                 {% for entry in log %}
12                         <a class="list-group-item list-group-item-action" href="{{ entry.url }}">
13                                 <div class="row {% if entry.severity == entry.severity.NORMAL %}text-muted{% endif %}">
14                                         <div class="col-sm-auto text-center" style="width: 50px;">
15                                                 {% if entry.severity == entry.severity.MODERATION %}
16                                                         <i class="fas fa-exclamation-triangle" style="color: yellow;"></i>
17                                                 {% elif entry.severity == entry.severity.EDITOR %}
18                                                         <i class="fas fa-users" style="color: #537eac;"></i>
19                                                 {% endif %}
20                                         </div>
21
22                                         <div class="col-sm-2 text-muted">
23                                                 <img
24                                                         class="img-responsive user-photo img-thumbnail img-thumbnail-1"
25                                                         style="max-height: 22px;"
26                                                         src="{{ entry.causer.getProfilePicURL() }}" />
27
28                                                 <span class="pl-2">{{ entry.causer.display_name }}</span>
29                                         </div>
30
31                                         <div class="col-sm">
32                                                 {{ entry.title}}
33                                         </div>
34
35                                         {% if entry.package %}
36                                                 <div class="col-sm-auto text-muted">
37                                                         <span class="pr-2">
38                                                                 {{ entry.package.title }}
39                                                         </span>
40
41                                                         <img
42                                                                 class="img-responsive"
43                                                                 style="max-height: 22px; max-width: 22px;"
44                                                                 src="{{ entry.package.getThumbnailURL(1) }}" />
45                                                 </div>
46                                         {% endif %}
47
48
49                                         <div class="col-sm-auto text-muted">
50                                                 {{ entry.created_at | datetime }}
51                                         </div>
52                                 </div>
53                         </a>
54                 {% else %}
55                         <p class="list-group-item"><i>No audit log entires.</i></p>
56                 {% endfor %}
57         </ul>
58 {% endblock %}