aboutsummaryrefslogtreecommitdiff
path: root/interface/admin_dirs.tmpl
blob: d7c53171738aafb629788df64a56cfbd31e01ff7 (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
<!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 - All directories</h1>
		</div>
		<div id="container">
				{% if error %}
				<div id="error">
					{{ error }}
				</div>
				{% endif %}
				<div id="create">
					<form action="/admin" method="POST">
						<input type="text" name="new" placeholder="Create new folder" />
						<input type="submit" name="create" value="Create" />
					</form>
				</div>
				<div id="dirlisting">
					{% for dir in listing %}
						<div class="entry">
							<a class="entry" href="/admin/{{dir.name}}">{{dir.name}}</a>
							<a class="button" href="/admin/{{dir.name}}/rename">Rename</a>
							<a class="button" href="/admin/{{dir.name}}/aliases">{{dir.nlinks}} Links</a>
							<a class="delete button" href="/admin/{{dir.name}}/delete">Delete</a>
						</div>
					{% endfor %}
				</div>
		</div>
	</body>
</html>