aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-29 19:23:19 (UTC)
committerjan <jan@ruken.pw>2015-12-29 19:23:19 (UTC)
commit1354a3a30c1639c1441e79356df12601151630a6 (patch)
treea06b5572f914a209cf5d5111853ac4236dcba3a3 /views
parent5a87c787713edb20b735b8460f5ab49d0041e236 (diff)
controls nur anzeigen, wenn einem die liste gehört.
Diffstat (limited to 'views')
-rw-r--r--views/list.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/views/list.html b/views/list.html
index d4cfeae..ddec59f 100644
--- a/views/list.html
+++ b/views/list.html
@@ -1,5 +1,6 @@
1{{ define "list" }} 1{{ define "list" }}
2{{ $list := .list }} 2{{ $list := .list }}
3{{ $user := .user }}
3<html> 4<html>
4 <head> 5 <head>
5 {{ template "materialize" }} 6 {{ template "materialize" }}
@@ -28,26 +29,28 @@
28 <span class="jap-name">{{ $lg.Gril.KanjiName }}</span> 29 <span class="jap-name">{{ $lg.Gril.KanjiName }}</span>
29 </span> 30 </span>
30 </div> 31 </div>
32 {{ if ($user) and eq $user.ID $list.Owner.ID }}
31 <div class="col s2 m3"> 33 <div class="col s2 m3">
32 <div class="hide-on-med-and-up"> 34 <div class="hide-on-med-and-up">
33 <div class="row list-controls valign-wrapper"> 35 <div class="row list-controls valign-wrapper">
34 <div class="col s6 left-align"> 36 <div class="col s6 left-align">
35 <i class="material-icons" onClick="">keyboard_arrow_up</i> 37 <i class="material-icons grey-text" onClick="">keyboard_arrow_up</i>
36 <i class="material-icons" onClick="">keyboard_arrow_down</i> 38 <i class="material-icons grey-text" onClick="">keyboard_arrow_down</i>
37 </div> 39 </div>
38 <div class="col s4 left-align"> 40 <div class="col s4 left-align">
39 <i class="hide-on-med-and-up material-icons delete-icon" onClick="">delete</i> 41 <i class="hide-on-med-and-up material-icons delete-icon grey-text" onClick="">delete</i>
40 </div> 42 </div>
41 </div> 43 </div>
42 </div> 44 </div>
43 <div class="hide-on-small-only"> 45 <div class="hide-on-small-only">
44 <div class="valign-wrapper"> 46 <div class="valign-wrapper">
45 <i class="medium material-icons" onClick="">keyboard_arrow_up</i> 47 <i class="medium material-icons grey-text" onClick="">keyboard_arrow_up</i>
46 <i class="medium material-icons" onClick="">keyboard_arrow_down</i> 48 <i class="medium material-icons grey-text" onClick="">keyboard_arrow_down</i>
47 <i class="material-icons" onClick="">delete</i> 49 <i class="material-icons grey-text" onClick="">delete</i>
48 </div> 50 </div>
49 </div> 51 </div>
50 </div> 52 </div>
53 {{ end }}
51 </div> 54 </div>
52 </div> 55 </div>
53 </li> 56 </li>