aboutsummaryrefslogtreecommitdiff
path: root/views/includes/list_gril.html
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
committerrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
commit6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch)
treee2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/includes/list_gril.html
parentb868b32d348e6350225560b71c8712c2e932b063 (diff)
Ordnung in die Templates gebracht
Diffstat (limited to 'views/includes/list_gril.html')
-rw-r--r--views/includes/list_gril.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/includes/list_gril.html b/views/includes/list_gril.html
new file mode 100644
index 0000000..f719dae
--- /dev/null
+++ b/views/includes/list_gril.html
@@ -0,0 +1,38 @@
1{{ define "list_gril" }}
2<li id="{{ .Index }}">
3 <div class="card-panel hoverable list-entry">
4 <div class="row valign-wrapper">
5 <div class="col s3 m2 {{ if not .Value.IsListOwner }}offset-s1 offset-m1{{ end }}">
6 <div class="circle gril-img" style="background-image: url(/{{ .Value.Gril.Gril.ImagePath true }})"> </div>
7 </div>
8 <div class="col {{ if .Value.IsListOwner }}s6 m3{{ else }}s8 m9{{ end }}">
9 <span><a href="/gril/{{ .Value.Gril.Gril.Slug }}">{{ .Value.Gril.Gril.RomajiName }}</a><br />
10 <span class="jap-name truncate">{{ .Value.Gril.Gril.KanjiName }}</span>
11 </span>
12 </div>
13 {{ if .Value.IsListOwner }}
14 <div class="col s3 m5">
15 <div class="hide-on-med-and-up">
16 <div class="row list-controls valign-wrapper">
17 <div class="col s6 left-align">
18 <i class="material-icons grey-text" onClick="">keyboard_arrow_up</i>
19 <i class="material-icons grey-text" onClick="">keyboard_arrow_down</i>
20 </div>
21 <div class="col s4 left-align">
22 <i class="hide-on-med-and-up material-icons delete-icon grey-text" onClick="">delete</i>
23 </div>
24 </div>
25 </div>
26 <div class="hide-on-small-only">
27 <div class="valign-wrapper">
28 <i class="medium material-icons grey-text" onClick="">keyboard_arrow_up</i>
29 <i class="medium material-icons grey-text" onClick="">keyboard_arrow_down</i>
30 <i class="material-icons grey-text" onClick="">delete</i>
31 </div>
32 </div>
33 </div>
34 {{ end }}
35 </div>
36 </div>
37</li>
38{{ end }} \ No newline at end of file