You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
900 B
23 lines
900 B
{{ $_hugo_config := `{ "version": 1 }` }}
|
|
<div class="ticket" {{ if .Get "soldOut" }}aria-disabled="true"{{end}}>
|
|
<div class="ticket-name">{{ .Get "name "}}</div>
|
|
<div class="ticket-price">{{ .Get "price" }}</div>
|
|
<div class="ticket-date">
|
|
{{ $lang := $.Page.Language.Lang }}
|
|
{{ partial "date-short.html" (dict "time" (.Get "starts") "lang" $lang) }}
|
|
-
|
|
{{ partial "date-short.html" (dict "time" (.Get "ends") "lang" $lang) }}
|
|
</div>
|
|
<div class="ticket-info">{{ .Get "info" }}</div>
|
|
|
|
{{ if .Get "soldOut" }}
|
|
<span class="btn" aria-disabled="true">{{ i18n "home_tickets_soldout" }}</span>
|
|
{{ else if .Get "close" }}
|
|
<span class="btn" aria-disabled="true">{{ i18n "home_tickets_close" }}</span>
|
|
{{ else }}
|
|
<a href="{{ .Get "url" }} "class="btn primary" rel="noreferrer" target="_blank">
|
|
{{ partial "icon.html" "ticket" }}
|
|
{{- i18n "home_tickets_action" -}}
|
|
</a>
|
|
{{ end }}
|
|
</div> |