aboutsummaryrefslogtreecommitdiff
path: root/views/pages/gril.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/pages/gril.html')
-rw-r--r--views/pages/gril.html185
1 files changed, 90 insertions, 95 deletions
diff --git a/views/pages/gril.html b/views/pages/gril.html
index a24cb77..69d7fcd 100644
--- a/views/pages/gril.html
+++ b/views/pages/gril.html
@@ -1,106 +1,101 @@
1{{ define "gril" }} 1{{ define "gril" }}
2{{ $gril := .gril }} 2{{ $gril := .gril }}
3<html> 3<html>
4 <head> 4 <head>
5 {{ template "materialize" }} 5 {{ template "materialize" }}
6 <title>grilist</title> 6 <title>grilist</title>
7 <link rel="stylesheet" href="/assets/css/gril.css" /> 7 <link rel="stylesheet" href="/assets/css/gril.css" />
8 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 8 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
9 </head> 9 </head>
10 <body> 10 <body>
11 {{ template "navbar" . }} 11 {{ template "navbar" . }}
12 <div class="container"> 12 <div class="container">
13 <h1 id="gril-title">{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1> 13 <h1 id="gril-title">{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1>
14 {{ if $gril.OtherNames }} 14 {{ if $gril.OtherNames }}
15 <p id="gril-alias">Auch bekannt als: 15 <p id="gril-alias">Auch bekannt als:
16 {{ range $i, $alias := $gril.OtherNames }}{{ if $i }},{{ end }} 16 {{ range $i, $alias := $gril.OtherNames }}{{ if $i }},{{ end }}
17 {{ $alias }}{{ end }} 17 {{ $alias }}{{ end }}
18 </p> 18 </p>
19 {{ end }}
20 <div class="row center-align">
21 <img src="{{ $gril.ImagePath false }}" />
22 {{ if .user }}
23 <br /><br /><a class="waves-effect waves-light btn-large modal-trigger purple lighten-2" href="#modal_add_gril">Zu Liste hinzufügen</a>
19 {{ end }} 24 {{ end }}
20 <div class="row center-align"> 25 </div>
21 <img src="{{ $gril.ImagePath false }}" /> 26 {{ range $tag := $gril.Tags }}
22 {{ if .user }} 27 <a href="/tag/{{ $tag }}"
23 <br /><br /><a class="waves-effect waves-light btn-large modal-trigger purple lighten-2" href="#modal_add_gril">Zu Liste hinzufügen</a> 28 alt="Mit &quot;{{ $tag }}&quot; getaggte Grils einsehen"
24 {{ end }} 29 title="Mit &quot;{{ $tag }}&quot; getaggte Grils einsehen">
25 30 <div class="chip gril-tag">
31 {{ $tag }}
32 </div>
33 </a>
34 {{ end }}
35 <br />
36 <br />
37 <div class="row">
38 {{ if $gril.Birthday.Valid }}
39 <div class="col s6 m2 l2">
40 <div class="card">
41 <div class="card-content purple-text text-lighten-2 center-align">
42 <span class="card-title big">{{ $gril.Birthday.Value}}</span>
43 <p>Geburtstag</p>
44 </div>
45 </div>
26 </div> 46 </div>
27 {{ range $tag := $gril.Tags }} 47 {{ else if $gril.Age.Valid }}
28 <a href="/tag/{{ $tag }}" 48 <div class="col s6 m2 l2">
29 alt="Mit &quot;{{ $tag }}&quot; getaggte Grils einsehen" 49 <div class="card">
30 title="Mit &quot;{{ $tag }}&quot; getaggte Grils einsehen"> 50 <div class="card-content purple-text text-lighten-2 center-align">
31 <div class="chip gril-tag"> 51 <span class="card-title big">{{ $gril.Age.Value }}</span>
32 {{ $tag }} 52 <p>Jahre alt</p>
53 </div>
54 </div>
55 </div>
56 {{ end }}
57 {{ if $gril.Lists }}
58 <div class="col s6 m2 l2">
59 <div class="card">
60 <div class="card-content center-big purple-text text-lighten-2 center-align">
61 <p>in</p>
62 <span class="card-title big">{{ len $gril.Lists}}</span>
63 <p>Liste{{ if ne (len $gril.Lists) 1 }}n{{ end }}</p>
64 </div>
33 </div> 65 </div>
34 </a> 66 </div>
35 {{ end }} 67 {{ end }}
36 <br /> 68 <div class="col s12 m4 l4">
37 <br /> 69 <div class="card">
38 <div class="row"> 70 <div class="card-content purple-text text-lighten-2 center-align">
39 {{ if $gril.Birthday.Valid }} 71 <span class="card-title big">{{ $gril.UpdatedAt.Format "Jan 02, 2006" }}</span>
40 <div class="col s6 m2 l2"> 72 <p>aktualisiert</p>
41 <div class="card"> 73 </div>
42 <div class="card-content purple-text text-lighten-2 center-align"> 74 </div>
43 <span class="card-title big">{{ $gril.Birthday.Value}}</span> 75 </div>
44 <p>Geburtstag</p> 76 </div>
45 </div> 77 {{ if .SimilarGrils }}
46 </div> 78 <h1>Ähnliche Grils</h1>
47 </div> 79 <div class="row">
48 {{ else if $gril.Age.Valid }} 80 {{ range .SimilarGrils }}
49 <div class="col s6 m2 l2"> 81 <div class="col s3">
50 <div class="card"> 82 {{ template "card_gril" . }}
51 <div class="card-content purple-text text-lighten-2 center-align">
52 <span class="card-title big">{{ $gril.Age.Value }}</span>
53 <p>Jahre alt</p>
54 </div>
55 </div>
56 </div>
57 {{ end }}
58 {{ if $gril.Lists }}
59 <div class="col s6 m2 l2">
60 <div class="card">
61 <div class="card-content center-big purple-text text-lighten-2 center-align">
62 <p>in</p>
63 <span class="card-title big">{{ len $gril.Lists}}</span>
64 <p>Liste{{ if ne (len $gril.Lists) 1 }}n{{ end }}</p>
65 </div>
66 </div>
67 </div>
68 {{ end }}
69 <div class="col s12 m4 l4">
70 <div class="card">
71 <div class="card-content purple-text text-lighten-2 center-align">
72 <span class="card-title big">{{ $gril.UpdatedAt.Format "Jan 02, 2006" }}</span>
73 <p>aktualisiert</p>
74 </div>
75 </div>
76 </div>
77 </div> 83 </div>
78 84 {{ end }}
79 {{ if .SimilarGrils }} 85 </div>
80 <h1>Ähnliche Grils</h1> 86 {{ end }}
81 <div class="row"> 87 </div>
82 {{ range .SimilarGrils }} 88 {{ if .user }}
83 <div class="col s3"> 89 <!-- Modal Structure -->
84 {{ template "card_gril" . }} 90 <div id="modal_add_gril" class="modal bottom-sheet">
85 </div> 91 <div class="modal-content">
86 {{ end }} 92 <h4>Zu Liste hinzufügen</h4>
87 </div> 93 <div class="collection" id="modal-add-gril-content"></div>
88 {{ end }}
89 </div> 94 </div>
90 95 </div>
91 96 {{ template "materialize_js" }}
92 {{ if .user }} 97 <script src="/assets/js/gril.js"></script>
93 <!-- Modal Structure --> 98 {{ end }}
94 <div id="modal_add_gril" class="modal bottom-sheet"> 99 </body>
95 <div class="modal-content">
96 <h4>Zu Liste hinzufügen</h4>
97 <div class="collection" id="modal-add-gril-content"></div>
98 </div>
99 </div>
100
101 {{ template "materialize_js" }}
102 <script src="/assets/js/gril.js"></script>
103 {{ end }}
104 </body>
105</html> 100</html>
106{{ end }} 101{{ end }}