aboutsummaryrefslogtreecommitdiff
path: root/views/user.html
blob: 90d6db22eb1240704c0de44a4964894921382d90 (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
{{ define "user" }}
<html>
	<head>
		{{ template "materialize" }}
		<title>{{ .DisplayUser.Name }} - grilist</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	</head>
	<body>
		{{ template "navbar" . }}
		<div class="container">
			<div class="row" style="margin-top: 50px; line-height: 500%; ">
				<span style="font-size: 4.2rem; margin: 2.1rem 1rem 1.68rem 0;">{{ .DisplayUser.Name }}</span>
				{{ if .user }}
					{{ if eq .DisplayUser.ID .user.ID }}
						&nbsp;&nbsp;<a class="btn waves-effect waves-light indigo lighten-5 black-text" style="margin-top: -1.68rem" href="/settings">Einstellungen</a>
					{{ end }}
				{{ end }}
			</div>
			<blockquote>zuletzt gesehen: {{ .DisplayUser.LastActivity.Format "Mon Jan _2 15:04:05 2006" }}</blockquote><br />
			<div class="row">
				<h3>Listen von {{ .DisplayUser.Name }}</h3>
				{{ range .Lists }}
					{{ template "card" . }}
				{{ end }}
			</div>
		</div>
	</body>
</html>
{{ end }}