{{ define "list" }} {{ $list := .list }} {{ $user := .user }} {{ template "materialize" }} grilist {{ template "navbar" . }}

{{ $list.Name }}von {{ $list.Owner.GetName }}

{{ $list.Description }}

    {{ range $index, $lg := $list.Grils }} {{ if $user }} {{ template "list_gril" makeRangePair $index (makeObject "Gril" $lg "IsListOwner" (eq $user.ID $list.Owner.ID)) }} {{ else }} {{ template "list_gril" makeRangePair $index (makeObject "Gril" $lg "IsListOwner" false) }} {{ end }} {{ end }}
{{ if ($user) and eq $user.ID $list.Owner.ID }}
Gril hinzufügen
close
{{ end }}
{{ end }}