gcg-website/layouts/termine/list.html

Failed to ignore revisions in .git-blame-ignore-revs.

36 lines
1.2 KiB
HTML
Raw Normal View History

2022-03-19 10:21:45 +01:00
{{ define "main" }}
<section class="section-sm">
2022-03-19 10:21:45 +01:00
<div class="container">
<div class="row">
<div class="col-12">
<div class="row gta-cat">
<div class="col-12">
<ul class="list-inline text-center filter-controls mb-5">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">{{ i18n "all" }}</li>
<li class="list-inline-item m-3 text-uppercase" data-filter="upcoming">Anstehend</li>
<li class="list-inline-item m-3 text-uppercase" data-filter="past">Vergangen</li>
</ul>
</div>
</div>
<noscript>
<style>
.gta-cat {
display: none;
}
</style>
</noscript>
<div class="filtr-container">
2022-03-19 10:21:45 +01:00
{{ range .Params.events }}
<div class="mb-2 mt-2 col-12 filtr-item" data-category="{{ if or (ge (.date | time.AsTime).Unix now.Unix) (and .enddate (ge (.enddate | time.AsTime).Unix now.Unix)) }}upcoming{{else}}past{{end}}" data-time="{{.date}}">
{{ partial "termin" . }}
</div>
2022-03-19 10:21:45 +01:00
{{ end }}
</div>
2022-03-19 10:21:45 +01:00
</div>
</div>
</div>
</section>
{{ end }}