aboutsummaryrefslogtreecommitdiff
path: root/views/list.html
blob: 63cfd9c856f134c0bce6f5a8f52ab35a2e5208b9 (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
{{ define "list" }}
{{ $list := .list }}
<html>
        <head>
				{{ template "materialize" }}
                <title>grilist</title>
				<link rel="stylesheet" href="/assets/css/gril.css" />
                <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
        </head>
        <body>
			<div class="container">
				{{ if .loggedIn }}
				<div class="row right-align">
					<a class="waves-effect waves-teal btn-flat large" style="top: 24px; font-size: 18px" href="/logout">Ausloggen</a>
				</div>
				{{ end }}
				<h1>{{ $list.Name }}<small>von xyz</small></h1><br />
				<ul>
				{{ range $lg := $list.Grils }}
					<li><a href="/gril/{{ $lg.Gril.ID }}">{{ $lg.Gril.RomajiName }}</a></li>
				{{ end }}
				</ul>
			</div>
        </body>
</html>
{{ end }}