diff options
author | Jan C <jan@ruken.pw> | 2016-03-11 13:16:08 (UTC) |
---|---|---|
committer | Jan C <jan@ruken.pw> | 2016-03-11 13:16:08 (UTC) |
commit | e46a94b715fdbf55ea71dc2e2664883e53955605 (patch) | |
tree | c1ccf1d97e68b4ac7d089cf8a56ebfa1e6c0d364 /views | |
parent | 848558c3ddcceddc3df6f0ff446a2691c895228d (diff) |
ähnliche grils anzeigen, wenn verfügbar (gril view)
Diffstat (limited to 'views')
-rw-r--r-- | views/includes/card_gril.html | 11 | ||||
-rw-r--r-- | views/pages/gril.html | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/views/includes/card_gril.html b/views/includes/card_gril.html new file mode 100644 index 0000000..337c9a9 --- /dev/null +++ b/views/includes/card_gril.html | |||
@@ -0,0 +1,11 @@ | |||
1 | {{ define "card_gril" }} | ||
2 | <div class="card white"> | ||
3 | <div class="center-align"> | ||
4 | <div class="circle gril-img" style="background-image: url(/{{ .ImagePath false }})"> </div> | ||
5 | </div> | ||
6 | <div class="card-content black-text"> | ||
7 | <span class="card-title">{{ .RomajiName }} <small>{{ .KanjiName }}</small></span> | ||
8 | </div> | ||
9 | <div class="card-action"><a href="/gril/{{ .Slug }}">anguckieren</a></div> | ||
10 | </div> | ||
11 | {{ end }} \ No newline at end of file | ||
diff --git a/views/pages/gril.html b/views/pages/gril.html index cd92208..eb66537 100644 --- a/views/pages/gril.html +++ b/views/pages/gril.html | |||
@@ -75,6 +75,17 @@ | |||
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | </div> | 77 | </div> |
78 | |||
79 | {{ if .SimilarGrils }} | ||
80 | <h1>Ähnliche Grils</h1> | ||
81 | <div class="row"> | ||
82 | {{ range .SimilarGrils }} | ||
83 | <div class="col s3"> | ||
84 | {{ template "card_gril" . }} | ||
85 | </div> | ||
86 | {{ end }} | ||
87 | </div> | ||
88 | {{ end }} | ||
78 | </div> | 89 | </div> |
79 | 90 | ||
80 | 91 | ||