{{ 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 }}
settings {{ if $user.HasExternalServices }} file_download {{ end }}
{{ end }}
{{ $list.Description }}

{{ if isSameUser $user $list.Owner }} {{ template "like" (map "ContentType" 0 "ContentID" $list.ID) }} {{ else }} {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }} {{ end }}
    {{ 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 }}
{{ template "materialize_js" }} {{ end }}