aboutsummaryrefslogtreecommitdiff
path: root/interface/admin_delete.tmpl
blob: 102d90813411893ec38f41b3ae61d1d18ad7942b (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
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta name="robots" content="noindex,nofollow" />
		<title>cargohold</title>
		<link rel="stylesheet" href="/assets/cargohold.css" />
		<link rel="stylesheet" href="/assets/admin.css" />
		<link rel="icon" href="/assets/cargohold.ico" />
	</head>
	<body>
		<div id="header">
			<h1>cargohold - <span class="dirname">{{ directory }}</span></h1>
			<a class="button" href="/admin">Back to overview</a>
		</div>
		<div id="container">
			<div id="topmenu">
				<a class="button" href="/admin/{{ directory }}">View</a>
				<a class="button" href="/admin/{{ directory }}/upload">Upload</a>
				<a class="button" href="/admin/{{ directory }}/rename">Rename</a>
				<a class="button" href="/admin/{{ directory }}/aliases">Links</a>
				<a class="button active" href="/admin/{{ directory }}/delete">Delete</a>
			</div>

			<div id="message">
				This will delete the directory <span class="highlight dirname">{{ directory }}</span>.
				<br />
				This directory still contains {{ listing | length }} files.
			</div>

			<div id="dirlisting">
				{% for file in listing %}
					<div class="entry">
						<a class="entry" href="/admin/{{ directory }}/file/{{ file.name }}">{{ file.name }}</a>
					</div>
				{% endfor %}
			</div>

			<div id="action">
				<a class="button" href="/admin/{{ directory }}">Cancel</a>
				<a class="button delete" href="?confirm">Confirm &amp; delete all</a>
			</div>
		</div>
	</body>
</html>