aboutsummaryrefslogtreecommitdiff
path: root/sklad/base.tmpl
blob: b8487eed6431fc06f688549199cde3f9df394b75 (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>
	<title>{{ template "Title" }} - sklad</title>
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<style>
	html, body { min-height: 100vh; }
	body { padding: 1em; box-sizing: border-box;
		margin: 0 auto; max-width: 50em;
		border-left: 1px solid #ccc; border-right: 1px solid #ccc;
		font-family: sans-serif; }
	header { display: flex; justify-content: space-between; align-items: center;
		flex-wrap: wrap; margin: -1em -1em 0 -1em; padding: 0 1em;
		background: linear-gradient(0deg, #fff, #eee); }
	header * { display: inline-block; }
	a { color: inherit; }
	</style>
</head>
<body>

<header>
	<h1>sklad</h1>

{{ if .LoggedIn }}
	<a href=/>Obaly</a>
	<a href=/series>Řady</a>

	<form method=get action=/search>
	<input type=text name=q><input type=submit value="Hledat">
	</form>

	<form method=post action=/logout>
	<input type=submit value="Odhlásit">
	</form>
{{ end }}
</header>

{{ template "Content" . }}
</body>
</html>