aboutsummaryrefslogtreecommitdiff
path: root/views/list.html
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-01-16 21:38:53 (UTC)
committerjan <jan@ruken.pw>2016-01-16 21:38:53 (UTC)
commit1f116227f8b3416113c5950183f2df91f9368782 (patch)
tree955d282f793eb1fa8714af2e671c376e9342d721 /views/list.html
parent5812371696b716417f75eb0ba98ff14a03a5d0ad (diff)
fixieren der useransicht wenn man nicht eingeloggt ist. fixieren der listenansicht wenn man nicht eingeloggt ist.
Diffstat (limited to 'views/list.html')
-rw-r--r--views/list.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/list.html b/views/list.html
index b9ef7c8..81e8825 100644
--- a/views/list.html
+++ b/views/list.html
@@ -20,7 +20,11 @@
20 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> 20 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}">
21 <ul id="gril-list" class="gril-list"> 21 <ul id="gril-list" class="gril-list">
22 {{ range $index, $lg := $list.Grils }} 22 {{ range $index, $lg := $list.Grils }}
23 {{ template "list_gril" makeRangePair $index (makeObject "Gril" $lg "IsListOwner" (and ($user) (eq $user.ID $list.Owner.ID) )) }} 23 {{ if $user }}
24 {{ template "list_gril" makeRangePair $index (makeObject "Gril" $lg "IsListOwner" (eq $user.ID $list.Owner.ID)) }}
25 {{ else }}
26 {{ template "list_gril" makeRangePair $index (makeObject "Gril" $lg "IsListOwner" false) }}
27 {{ end }}
24 {{ end }} 28 {{ end }}
25 </ul> 29 </ul>
26 </div> 30 </div>