Change 'event_weekly' shortcode display to a definition list
- looks far better than a table - is not dependent to selected theme
This commit is contained in:
parent
878c35f5fb
commit
87b8921c34
|
@ -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">
|
|
||||||
<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
|
Jeden
|
||||||
{{ with $interval }}
|
{{- with $interval }}
|
||||||
{{ . }}
|
{{ . }} {{ $weekday }} im Monat
|
||||||
|
{{- else }}
|
||||||
{{ $weekday }}
|
{{ $weekday }}
|
||||||
im Monat
|
{{- end }}
|
||||||
{{ else }}
|
</dd>
|
||||||
{{ $weekday }}
|
{{- with $annotation }}
|
||||||
{{ end }}
|
<dd>
|
||||||
{{ with $annotation }}
|
<small>({{ . }})</small>
|
||||||
<br>
|
</dd>
|
||||||
<small>
|
{{- end }}
|
||||||
({{ . }})
|
<dt>von</dt>
|
||||||
</small>
|
<dd>
|
||||||
{{ end }}
|
{{ $begin }} Uhr
|
||||||
</td>
|
</dd>
|
||||||
<td>
|
<dt>bis</dt>
|
||||||
{{ $begin }}
|
<dd>
|
||||||
Uhr
|
{{- with $finish }}
|
||||||
</td>
|
{{ . }} Uhr
|
||||||
<td>
|
{{- else }}
|
||||||
{{ with $finish }}
|
|
||||||
{{ . }}
|
|
||||||
Uhr
|
|
||||||
{{ else }}
|
|
||||||
open end
|
open end
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</td>
|
</dd>
|
||||||
</tr>
|
</dl>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="pure-u-1-24">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|
Reference in New Issue