Change 'event_weekly' shortcode display to a definition list

- looks far better than a table
- is not dependent to selected theme
pull/9/head
sixtus 2021-09-17 16:31:25 +02:00
parent 878c35f5fb
commit 87b8921c34
1 changed files with 28 additions and 55 deletions

View File

@ -10,59 +10,32 @@
{{- $interval := $.Page.Param "event.weekly.interval" }}
{{- $annotation := $.Page.Param "event.weekly.annotation" }}
<p></p>
<div class="purge-g">
<div class="pure-u-1-24">
</div>
<div class="pure-u-1-22">
<table class="pure-table pure-table-horizontal centered">
<thead>
<tr>
<th>
Wochentag
</th>
<th>
von
</th>
<th>
bis
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Jeden
{{ with $interval }}
{{ . }}
{{ $weekday }}
im Monat
{{ else }}
{{ $weekday }}
{{ end }}
{{ with $annotation }}
<br>
<small>
({{ . }})
</small>
{{ end }}
</td>
<td>
{{ $begin }}
Uhr
</td>
<td>
{{ with $finish }}
{{ . }}
Uhr
{{ else }}
open end
{{ end }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="pure-u-1-24">
</div>
</div>
<dl>
<dt>Wochentag</dt>
<dd>
Jeden
{{- with $interval }}
{{ . }} {{ $weekday }} im Monat
{{- else }}
{{ $weekday }}
{{- end }}
</dd>
{{- with $annotation }}
<dd>
<small>({{ . }})</small>
</dd>
{{- end }}
<dt>von</dt>
<dd>
{{ $begin }} Uhr
</dd>
<dt>bis</dt>
<dd>
{{- with $finish }}
{{ . }} Uhr
{{- else }}
open end
{{- end }}
</dd>
</dl>
<p></p>