7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/evenementen/single.html

31 lines
894 B
HTML
Raw Normal View History

2023-05-10 16:17:29 +02:00
{{ define "main" }}
<hr>
{{ .Content }}
{{ if isset .Params "event_start" }}
{{ $event_start := .Params.event_start | time }}
<div class="highlight-box">
<ul>
<li>Start: {{ time.Format "02-01-2006 15:04" .Params.event_start }}</li>
<li>Einde: {{ time.Format "02-01-2006 15:04" .Params.event_end }}</li>
</ul>
</div>
{{ with .OutputFormats.Get "calendarevent" }}
<a href="{{ .RelPermalink }}" class="button">Kalender (iCal-bestand)</a>
{{ end }}
{{ with .Params.event_register_link }}
{{ if le now $event_start }}
<a href="{{ . }}" class="button">Inschrijven</a>
{{ else }}
<p>Dit evenement is al afgelopen, inschrijven is daarom niet meer mogelijk.</p>
{{ end }}
{{ end }}
{{ else }}
<p>Waarschuwing: dit evenement mist gegevens zoals start en einddatum.</p>
{{ end }}
{{ end }}