aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/warnings/list.html
blob: 96a299ca6ab6a3a86a1480961c680de631ca66ec (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
{% extends "base.html" %}

{% block title %}
{{ _("Warnings") }}
{% endblock %}

{% block content %}
	<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_warning') }}">{{ _("New Warning") }}</a>

	<h1>{{ _("Warnings") }}</h1>

	<p>
		Also see <a href="/help/content_flags/">Package Flags</a>.
	</p>

	<div class="list-group">
		<div class="list-group-item">
			<div class="row text-muted">
				<div class="col-sm-2">
					{{ _("Name") }}
				</div>

				<div class="col-sm">
					{{ _("Description") }}
				</div>

				<div class="col-sm-1 text-center">
					{{ _("Packages") }}
				</div>
			</div>
		</div>

		{% for t in warnings %}
			<a class="list-group-item list-group-item-action"
					href="{{ url_for('admin.create_edit_warning', name=t.name) }}">
				<div class="row">
					<div class="col-sm-2">
						{{ t.title }}
					</div>

					<div class="col-sm">
						{{ t.description }}
					</div>

					<div class="col-sm-1 text-center">
						{{ t.packages | count }}
					</div>
				</div>
			</a>
		{% endfor %}
	</div>
{% endblock %}