diff options
| author | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
|---|---|---|
| committer | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
| commit | 6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch) | |
| tree | e2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/tag.html | |
| parent | b868b32d348e6350225560b71c8712c2e932b063 (diff) | |
Ordnung in die Templates gebracht
Diffstat (limited to 'views/tag.html')
| -rw-r--r-- | views/tag.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/views/tag.html b/views/tag.html deleted file mode 100644 index d0d4180..0000000 --- a/views/tag.html +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 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 "{{ .tag }}":</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 }} | ||
