{{$currLang:=.Page.Lang }} {{$langBase:=index .Site.Data $currLang}} {{ .Scratch.Set "agenda" $langBase.agenda }} {{$event_id := .Get 0}} {{ if and ($event_id) (ne $event_id "") }} {{ .Scratch.Set "agenda" (index $langBase $event_id).agenda }} {{ end }} {{$events := (.Scratch.Get "agenda").items}} {{$types := (.Scratch.Get "agenda").types}} {{$complete := (.Scratch.Get "agenda").complete }} {{$title_suffix := .Get 1 }} {{ $has_slides:=false }} {{ range $events }} {{ if isset . "slides" }} {{ $has_slides = true }} {{ end }} {{ end }}
{{ if $types }}

{{ i18n "agenda-legend" }}

{{ end }}

{{ i18n "agenda-sessions" }}

{{ if $complete }} {{ else }} {{ end }} {{ if $has_slides }} {{ end }} {{ range $events }} {{ if $complete }} {{ else }} {{ end }} {{ if $has_slides }} {{ end }} {{ end }}
{{ i18n "agenda-session-name" }} {{ i18n "agenda-presenter-name" }}{{ i18n "agenda-session-recording" }}{{ i18n "agenda-session-schedule" }}{{ i18n "agenda-session-slides" }}
{{ if $types }} {{ range first 1 (where $types "id" .type) }} {{ .name }} {{ end}} {{ end }} {{ .name }} {{ .presenter }} {{ i18n "agenda-session-recording-button-alt" . }} {{ .time }} {{ if (isset . "slides") }} {{ i18n "agenda-session-slides-button-alt" . }} {{ end }}