aboutsummaryrefslogtreecommitdiff
path: root/views/tag.html
blob: 3e89a7b1b2481cdf5f076ca9033efa582cba6b02 (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
{{ define "tag" }}
<html>
	<head>
		{{ template "materialize" }}
		<title>grilist</title>
		<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	</head>
	<body>
		{{ template "navbar" . }}
		<div class="container">
			<div class="row">
			<h2>Grils mit dem Tag &quot;{{ .tag }}&quot;:</h2>
			<div class="row">
				{{ range .cards }}
					{{ template "card" . }}
				{{ end }}
			</div>
			<ul class="pagination center-align">
				<li class="{{ if eq .currentPage 1 }}disabled{{ else }}waves-effect{{ end }}"><a href="/tag/{{ .tag }}/{{ sub .currentPage 1 }}"><i class="material-icons">chevron_left</i></a></li>
				<li class="active"><a href="#!">{{ .currentPage }}</a></li>
				<li class="{{ if eq .currentPage .pageCount }}disabled{{ else }}waves-effect{{ end }}"><a href="/tag/{{ .tag }}/{{ add .currentPage 1 }}"><i class="material-icons">chevron_right</i></a></li>
				</ul>
			</div>
		</div>
	</body>
</html>
{{ end }}