diff options
Diffstat (limited to 'views/gril.html')
-rw-r--r-- | views/gril.html | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/views/gril.html b/views/gril.html deleted file mode 100644 index 776f14f..0000000 --- a/views/gril.html +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | {{ define "gril" }} | ||
2 | {{ $gril := .gril }} | ||
3 | <html> | ||
4 | <head> | ||
5 | {{ template "materialize" }} | ||
6 | <title>grilist</title> | ||
7 | <link rel="stylesheet" href="/assets/css/gril.css" /> | ||
8 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
9 | </head> | ||
10 | <body> | ||
11 | {{ template "navbar" . }} | ||
12 | <div class="container"> | ||
13 | <h1 id="gril-title">{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1> | ||
14 | {{ if $gril.OtherNames }} | ||
15 | <p id="gril-alias">Auch bekannt als: | ||
16 | {{ range $i, $alias := $gril.OtherNames }}{{ if $i }},{{ end }} | ||
17 | {{ $alias }}{{ end }} | ||
18 | </p> | ||
19 | {{ end }} | ||
20 | <div class="row center-align"> | ||
21 | <img src="/{{ $gril.ImagePath false }}" /> | ||
22 | </div> | ||
23 | {{ range $tag := $gril.Tags }} | ||
24 | <a href="/tag/{{ $tag }}" | ||
25 | alt="Mit "{{ $tag }}" getaggte Grils einsehen" | ||
26 | title="Mit "{{ $tag }}" getaggte Grils einsehen"> | ||
27 | <div class="chip gril-tag"> | ||
28 | {{ $tag }} | ||
29 | </div> | ||
30 | </a> | ||
31 | {{ end }} | ||
32 | <br /> | ||
33 | <br /> | ||
34 | <div class="row"> | ||
35 | {{ if $gril.Birthday.Valid }} | ||
36 | <div class="col s6 m2 l2"> | ||
37 | <div class="card"> | ||
38 | <div class="card-content purple-text text-lighten-2 center-align"> | ||
39 | <span class="card-title big">{{ $gril.Birthday.Value}}</span> | ||
40 | <p>Geburtstag</p> | ||
41 | </div> | ||
42 | </div> | ||
43 | </div> | ||
44 | {{ else if $gril.Age.Valid }} | ||
45 | <div class="col s6 m2 l2"> | ||
46 | <div class="card"> | ||
47 | <div class="card-content purple-text text-lighten-2 center-align"> | ||
48 | <span class="card-title big">{{ $gril.Age.Value }}</span> | ||
49 | <p>Jahre alt</p> | ||
50 | </div> | ||
51 | </div> | ||
52 | </div> | ||
53 | {{ end }} | ||
54 | {{ if $gril.Lists }} | ||
55 | <div class="col s6 m2 l2"> | ||
56 | <div class="card"> | ||
57 | <div class="card-content center-big purple-text text-lighten-2 center-align"> | ||
58 | <p>in</p> | ||
59 | <span class="card-title big">{{ len $gril.Lists}}</span> | ||
60 | <p>Liste{{ if ne (len $gril.Lists) 1 }}n{{ end }}</p> | ||
61 | </div> | ||
62 | </div> | ||
63 | </div> | ||
64 | {{ end }} | ||
65 | <div class="col s12 m4 l4"> | ||
66 | <div class="card"> | ||
67 | <div class="card-content purple-text text-lighten-2 center-align"> | ||
68 | <span class="card-title big">{{ $gril.UpdatedAt.Format "Jan 02, 2006" }}</span> | ||
69 | <p>aktualisiert</p> | ||
70 | </div> | ||
71 | </div> | ||
72 | </div> | ||
73 | </div> | ||
74 | </div> | ||
75 | </body> | ||
76 | </html> | ||
77 | {{ end }} | ||