Dry sidebar partial

This commit is contained in:
Ral 2025-04-14 03:55:27 +02:00
parent 1bc2cc00a3
commit f964a89ecc
8 changed files with 122 additions and 31 deletions

View file

@ -1,3 +1,22 @@
[date]
other = "Datum"
[location]
other = "Ort"
[registration]
other = "Anmeldung"
[admission]
other = "Eintritt"
[schedule]
other = "Fahrplan"
[day]
other = "Tag"
[Montag]
other = "Montag"
[Dienstag]

View file

@ -1,3 +1,22 @@
[date]
other = "Date"
[location]
other = "Location"
[registration]
other = "Registration"
[admission]
other = "Admission"
[schedule]
other = "Schedule"
[day]
other = "day"
[Montag]
other = "Monday"
[Dienstag]

View file

@ -1,3 +1,22 @@
[date]
other = "Date"
[location]
other = "Lieu"
[registration]
other = "Inscription"
[admission]
other = "Entrée"
[schedule]
other = "Programme"
[day]
other = "Jour"
[Montag]
other = "lundi"
[Dienstag]

View file

@ -1,3 +1,22 @@
[date]
other = "Data"
[location]
other = "Luogo"
[registration]
other = "Registrazione"
[admission]
other = "Costo"
[schedule]
other = "Tabella di marcia"
[day]
other = "Giorno"
[Montag]
other = "lunedì"
[Dienstag]

View file

@ -18,24 +18,28 @@
{{ if .date_known }}
{{ $start := time.AsTime .date_start }}
{{ $end := time.AsTime .date_end }}
<strong>Datum:</strong> {{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
<strong>{{ i18n "date" }}:</strong>
{{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
{{ end }}
{{ if .location_known }}
<strong>Ort:</strong> {{ i18n .location_name }} in <strong>{{ i18n .location_city }}</strong>
<strong>{{ i18n "location" }}:</strong>
{{ i18n .location_name }} in <strong>{{ i18n .location_city }}</strong>
{{ end }}
</p>
{{ if .flyer_available }}
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong></p>
<p>
<strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong>
</p>
{{ end }}
{{ if .registration_open }}
<p>
<strong>Anmeldung:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>Eintritt:</strong> {{ .entrance_fee }}
<strong>{{ i18n "registration" }}:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>{{ i18n "admission" }}:</strong> {{ .entrance_fee }}
</p>
{{ end }}
@ -47,17 +51,20 @@
{{ if .cfp_running }}
<p><strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Pretalx</a><br>
Offen bis {{ time.Format "2. January 2006" .cfp_end_date }}.<br>
<p>
<strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Pretalx</a><br>
Offen bis {{ time.Format "2. January 2006" .cfp_end_date }}.
</p>
{{ end }}
{{ if .schedule_available }}
<p><strong>Fahrplan:</strong></p>
<p>
<strong>{{ i18n "schedule" }}:</strong>
</p>
<ul>
{{ range $index, $element := .schedule_day_urls }}
<li><a href="{{ $element | safeURL }}">Tag {{ add $index 1 }}</a></li>
<li><a href="{{ $element | safeURL }}">{{ i18n "day" }} {{ add $index 1 }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -18,25 +18,28 @@
{{ if .date_known }}
{{ $start := time.AsTime .date_start }}
{{ $end := time.AsTime .date_end }}
<strong>Date:</strong>
<strong>{{ i18n "date" }}:</strong>
{{ $start.Month }} {{ $start.Day | humanize }} - {{ $end.Month }} {{ $end.Day | humanize }} {{ $end.Year }}<br>
{{ end }}
{{ if .location_known }}
<strong>Location:</strong> {{ i18n .location_name }} in <strong>{{ i18n .location_city }}</strong>
<strong>{{ i18n "location" }}:</strong>
{{ i18n .location_name }} in <strong>{{ i18n .location_city }}</strong>
{{ end }}
</p>
{{ if .flyer_available }}
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong></p>
<p>
<strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong>
</p>
{{ end }}
{{ if .registration_open }}
<p>
<strong>Registration:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>Admission:</strong> {{ .entrance_fee }}
<strong>{{ i18n "registration" }}:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>{{ i18n "admission" }}:</strong> {{ .entrance_fee }}
</p>
{{ end }}
@ -48,17 +51,20 @@
{{ if .cfp_running }}
<p><strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Pretalx</a><br>
Offen bis {{ time.Format "2. January 2006" .cfp_end_date }}.<br>
<p>
<strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Pretalx</a><br>
Deadline: {{ time.Format "2. January 2006" .cfp_end_date }}.
</p>
{{ end }}
{{ if .schedule_available }}
<p><strong>Schedule:</strong></p>
<p>
<strong>{{ i18n "schedule" }}:</strong>
</p>
<ul>
{{ range $index, $element := .schedule_day_urls }}
<li><a href="{{ $element | safeURL }}">Day {{ add $index 1 }}</a></li>
<li><a href="{{ $element | safeURL }}">{{ i18n "day" }} {{ add $index 1 }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -18,24 +18,26 @@
{{ if .date_known }}
{{ $start := time.AsTime .date_start }}
{{ $end := time.AsTime .date_end }}
<strong>Date:</strong> {{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
<strong>{{ i18n "date" }}:</strong> {{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
{{ end }}
{{ if .location_known }}
<strong>Lieu:</strong> {{ i18n .location_name }} à <strong>{{ i18n .location_city }}</strong>
<strong>{{ i18n "location" }}:</strong> {{ i18n .location_name }} à <strong>{{ i18n .location_city }}</strong>
{{ end }}
</p>
{{ if .flyer_available }}
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong></p>
<p>
<strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .edition_year }}</a></strong>
</p>
{{ end }}
{{ if .registration_open }}
<p>
<strong>Inscription:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>Entrée:</strong> {{ .entrance_fee }}
<strong>{{ i18n "registration" }}:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>{{ i18n "admission" }}:</strong> {{ .entrance_fee }}
</p>
{{ end }}
@ -54,10 +56,10 @@
{{ if .schedule_available }}
<p><strong>Programme:</strong></p>
<p><strong>{{ i18n "schedule" }}:</strong></p>
<ul>
{{ range $index, $element := .schedule_day_urls }}
<li><a href="{{ $element | safeURL }}">Jour {{ add $index 1 }}</a></li>
<li><a href="{{ $element | safeURL }}">{{ i18n "day" }} {{ add $index 1 }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -18,11 +18,11 @@
{{ if .date_known }}
{{ $start := time.AsTime .date_start }}
{{ $end := time.AsTime .date_end }}
<strong>Data:</strong> {{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
<strong>{{ i18n "date" }}:</strong> {{ time.Format "2. January" $start }} - {{ time.Format "2. January 2006" $end }}<br>
{{ end }}
{{ if .location_known }}
<strong>Luogo:</strong> {{ i18n .location_name }} a <strong>{{ i18n .location_city }}</strong>
<strong>{{ i18n "location" }}:</strong> {{ i18n .location_name }} a <strong>{{ i18n .location_city }}</strong>
{{ end }}
</p>
@ -34,8 +34,8 @@
{{ if .registration_open }}
<p>
<strong>Registrazione:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>Costo:</strong> {{ .entrance_fee }}
<strong>{{ i18n "registration" }}:</strong> <a href="{{ .registration_url }}">Tickets</a><br>
<strong>{{ i18n "admission" }}:</strong> {{ .entrance_fee }}
</p>
{{ end }}
@ -54,10 +54,10 @@
{{ if .schedule_available }}
<p><strong>Tabella di marcia:</strong></p>
<p><strong>{{ i18n "schedule" }}:</strong></p>
<ul>
{{ range $index, $element := .schedule_day_urls }}
<li><a href="{{ $element | safeURL }}">Giorno {{ add $index 1 }}</a></li>
<li><a href="{{ $element | safeURL }}">{{ i18n "day" }} {{ add $index 1 }}</a></li>
{{ end }}
</ul>
{{ end }}