aboutsummaryrefslogtreecommitdiff
path: root/views/pages/user.html
blob: 2cf9c546d000a4648b94f01511dc1c9a454d8e55 (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.GetName }}</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.GetName }}</h3>
				{{ range .Lists }}
					{{ template "card" . }}
				{{ end }}
			</div>
		</div>
	</body>
</html>
{{ end }}