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