diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/includes/list_gril.html | 10 | ||||
-rw-r--r-- | views/pages/dashboard.html | 34 | ||||
-rw-r--r-- | views/pages/gril.html | 185 |
3 files changed, 112 insertions, 117 deletions
diff --git a/views/includes/list_gril.html b/views/includes/list_gril.html index 07f7f61..c095d69 100644 --- a/views/includes/list_gril.html +++ b/views/includes/list_gril.html | |||
@@ -17,14 +17,14 @@ | |||
17 | <div class="col s6 left-align"> | 17 | <div class="col s6 left-align"> |
18 | <i class="gril-sort-up material-icons">keyboard_arrow_up</i> | 18 | <i class="gril-sort-up material-icons">keyboard_arrow_up</i> |
19 | <i class="gril-sort-down material-icons">keyboard_arrow_down</i> | 19 | <i class="gril-sort-down material-icons">keyboard_arrow_down</i> |
20 | </div> | 20 | </div> |
21 | <div class="col s4 left-align"> | 21 | <div class="col s4 left-align"> |
22 | <i class="gril-delete hide-on-med-and-up material-icons delete-icon">delete</i> | 22 | <i class="gril-delete hide-on-med-and-up material-icons delete-icon">delete</i> |
23 | </div> | ||
24 | </div> | 23 | </div> |
25 | </div> | 24 | </div> |
26 | <div class="hide-on-small-only"> | 25 | </div> |
27 | <div class="valign-wrapper"> | 26 | <div class="hide-on-small-only"> |
27 | <div class="valign-wrapper"> | ||
28 | <i class="gril-sort-up medium material-icons">keyboard_arrow_up</i> | 28 | <i class="gril-sort-up medium material-icons">keyboard_arrow_up</i> |
29 | <i class="gril-sort-down medium material-icons">keyboard_arrow_down</i> | 29 | <i class="gril-sort-down medium material-icons">keyboard_arrow_down</i> |
30 | <i class="gril-delete material-icons">delete</i> | 30 | <i class="gril-delete material-icons">delete</i> |
diff --git a/views/pages/dashboard.html b/views/pages/dashboard.html index 045d4ab..589b0fd 100644 --- a/views/pages/dashboard.html +++ b/views/pages/dashboard.html | |||
@@ -1,24 +1,24 @@ | |||
1 | {{ define "dashboard" }} | 1 | {{ define "dashboard" }} |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | {{ template "materialize" }} | 4 | {{ template "materialize" }} |
5 | <title>grilist</title> | 5 | <title>grilist</title> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
7 | </head> | 7 | </head> |
8 | <body> | 8 | <body> |
9 | {{ template "navbar" . }} | 9 | {{ template "navbar" . }} |
10 | <div class="container"> | 10 | <div class="container"> |
11 | <div class="row"> | ||
12 | {{ range $category := .categories }} | ||
13 | <h2>{{ $category.Title }}</h2> | ||
11 | <div class="row"> | 14 | <div class="row"> |
12 | {{ range $category := .categories }} | 15 | {{ range $category.Cards }} |
13 | <h2>{{ $category.Title }}</h2> | 16 | {{ template "card" . }} |
14 | <div class="row"> | 17 | {{ end }} |
15 | {{ range $category.Cards }} | ||
16 | {{ template "card" . }} | ||
17 | {{ end }} | ||
18 | </div> | ||
19 | {{ end }} | ||
20 | </div> | 18 | </div> |
19 | {{ end }} | ||
21 | </div> | 20 | </div> |
22 | </body> | 21 | </div> |
22 | </body> | ||
23 | </html> | 23 | </html> |
24 | {{ end }} | 24 | {{ end }} |
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 "{{ $tag }}" getaggte Grils einsehen" |
24 | {{ end }} | 29 | title="Mit "{{ $tag }}" 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 "{{ $tag }}" getaggte Grils einsehen" | 49 | <div class="card"> |
30 | title="Mit "{{ $tag }}" 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 }} |