{{ define "list" }} {{ $list := .list }} {{ $user := .user }} {{ template "materialize" }} {{ template "js" "like" }} grilist {{ template "navbar" . }}
{{ if .isOwner }}
{{ end }}

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

{{ if .isOwner }}
{{ end }}
{{ $list.Description }}

{{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }}
    {{ 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 .isOwner }}
Gril hinzufügen
close
{{ end }}
{{ end }}