aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/audit.html
blob: 49e2aaf8845754064ae8f6eb859044fcd750fc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{% 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"
				{% 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;"
							title="{{ _('Severity: %(sev)s.', sev=entry.severity.getTitle()) }}">
						{% 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}}

						{% if entry.description %}
							<i class="fas fa-paperclip ml-3"></i>
						{% endif %}
					</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 %}
	</div>
{% endblock %}