aboutsummaryrefslogtreecommitdiff
path: root/views/pages/tag.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/pages/tag.html')
-rw-r--r--views/pages/tag.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/views/pages/tag.html b/views/pages/tag.html
new file mode 100644
index 0000000..d0d4180
--- /dev/null
+++ b/views/pages/tag.html
@@ -0,0 +1,34 @@
1{{ define "tag" }}
2{{ $tagBaseURI := printf "/tag/%s/" .tag }}
3<html>
4 <head>
5 {{ template "materialize" }}
6 <title>grilist</title>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
8 </head>
9 <body>
10 {{ template "navbar" . }}
11 <div class="container">
12 <div class="row">
13 <h2>Grils mit dem Tag &quot;{{ .tag }}&quot;:</h2>
14 <div class="row">
15 {{ range .cards }}
16 {{ template "card" . }}
17 {{ end }}
18 </div>
19 <ul class="pagination center-align">
20 <li class="{{ if eq .pagination.Current 1 }}disabled{{ else }}waves-effect{{ end }}"><a href="{{ $tagBaseURI }}{{ sub .pagination.Current 1 }}"><i class="material-icons">chevron_left</i></a></li>
21 {{ range .pagination.Before }}
22 <li class="wave-effect"><a href="{{ $tagBaseURI }}{{ . }}">{{ . }}</a></li>
23 {{ end }}
24 <li class="active"><a href="#!">{{ .pagination.Current }}</a></li>
25 {{ range .pagination.After }}
26 <li class="wave-effect"><a href="{{ $tagBaseURI }}{{ . }}">{{ . }}</a></li>
27 {{ end }}
28 <li class="{{ if eq .pagination.Current .pagination.MaxPage }}disabled{{ else }}waves-effect{{ end }}"><a href="{{ $tagBaseURI }}{{ add .pagination.Current 1 }}"><i class="material-icons">chevron_right</i></a></li>
29 </ul>
30 </div>
31 </div>
32 </body>
33</html>
34{{ end }}