{{ $is_repeating := gt .Params.time_slots 1 }} {{ $multiple_dates_event := ne .Params.dates.from.day .Params.dates.to.day }} {{ $is_parent := .Params.children}} {{ $has_primary_date := or $is_repeating $multiple_dates_event $is_parent }}

{{ i18n "commons.date" (cond $has_primary_date 2 1) }}

{{ if $has_primary_date }}
{{ .Params.dates.computed.long }} {{ if $is_repeating }} {{ i18n (printf "events.regular_event") }} {{ end }} {{ with .Params.place }} {{ . }} {{ end }} {{ partial "commons/dropdown-calendar.html" (dict "index" "primary" "calendar_links" .Params.dates.add_to_calendar )}}
{{ end }} {{ with .Params.time_slots }} {{ end }} {{ if $is_repeating }} {{ end }}