diff options
Diffstat (limited to 'views/list.html')
-rw-r--r-- | views/list.html | 6 |
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> |