{{$currLang:=.Page.Lang }} {{ $year := .Get "year" }} {{ if $year }} {{ .Scratch.Set "base" (index (index .Site.Data $currLang) $year) }} {{ else }} {{ .Scratch.Set "base" (index .Site.Data $currLang) }} {{ end }} {{ $base := .Scratch.Get "base" }} {{ $event_id := .Get "event" | default "default" }} {{ $src := .Get "src" | default "agenda" }} {{ $icon_class := .Get "icon_class" | default "fa-file"}} {{ $agendabase := (index (index $base $event_id) $src) }} {{ $types := $agendabase.types }} {{ $complete := $agendabase.complete }} {{$title_suffix := .Get "title" }} {{ $multiSet := false }} {{ if isset $agendabase "sets" }} {{ if gt (len $agendabase.sets) 1 }} {{ $multiSet = true }} {{ end }} {{ end }}

{{ .Get "title" | default (i18n "agenda-sessions") }}

{{ if $types }}

{{ i18n "agenda-legend" }}

{{ end }}
{{ $agendaItemsBase := slice $agendabase }} {{ if $multiSet }} {{ $agendaItemsBase = $agendabase.sets }}
{{ end }} {{ $hasOrgs := false }} {{ if $multiSet }} {{ range $index, $set := $agendaItemsBase }} {{ range $set.items }} {{ if isset . "organization" }} {{ $hasOrgs = true }} {{ end }} {{ end }} {{ end }} {{ else }} {{ range $index, $set := $agendaItemsBase }} {{ range $set.items }} {{ if isset . "organization" }} {{ $hasOrgs = true }} {{ end }} {{ end }} {{ end }} {{ end }} {{ range $index, $set := $agendaItemsBase }} {{ $has_slides := false }} {{ $has_vod := false }} {{ range $set.items }} {{ if isset . "slides" }} {{ $has_slides = true }} {{ end }} {{ if isset . "vod" }} {{ $has_vod = true }} {{ end }} {{ end }} {{ if $multiSet }}
{{ end }}
{{ if $hasOrgs }} {{ end }} {{ if and ($complete) ($has_vod) }} {{ else }} {{ end }} {{ if $has_slides }} {{ end }} {{ range $set.items }} {{ if $hasOrgs }} {{ end }} {{ if and ($complete) ($has_vod) }} {{ else }} {{if .times }} {{else if $agendabase.dynamicTime}} {{else}} {{end}} {{ end }} {{ if $has_slides }} {{ end }} {{ end }}
{{ i18n "agenda-session-name" }} {{ i18n "agenda-presenter-name" }}{{ i18n "agenda-organization" }}{{ 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 }} {{ if isset . "abstract" }} {{/* Build the "presenter" data attribute for the modal. If multiple presenters, make a comma delimited string. */}} {{ $presenters := "" }} {{ if .presenter }} {{ $presenters = .presenter }} {{ else if .presenters }} {{ $presenters = delimit .presenters ", " }} {{ end }} {{ i18n "agenda-abstract-modal-alt" . }} {{ end }} {{ if and (isset . "presenters") }}
    {{ range .presenters }}
  • {{ . | safeHTML }}
  • {{ end }}
{{ else }} {{ .presenter | safeHTML }} {{ end }}
{{ .organization | safeHTML }} {{ if (isset . "vod") }} {{ i18n "agenda-session-recording-button-alt" . }} {{ end }}
    {{range .times}}
  • {{ . | safeHTML }}
  • {{end}}
{{.time | safeHTML }}{{.time | safeHTML }} {{ if (isset . "slides") }} {{ i18n "agenda-session-slides-button-alt" . }} {{ end }}
{{ if $multiSet }}
{{ end }} {{ end }} {{ if $multiSet }}
{{ end }}