Update terminkalender
This commit is contained in:
parent
e45b6a8e73
commit
43cd597f99
1 changed files with 50 additions and 51 deletions
|
@ -1,52 +1,51 @@
|
||||||
{#- HTML Calender Renderer for Startpage -#}
|
{#- HTML Calender Renderer for Startpage -#}
|
||||||
{{- '\n ' -}}
|
{{- '\n ' -}} <!-- Flow Calendar -->
|
||||||
<!-- Flow Calendar -->
|
{%- set pages = site.query('/').include_undiscoverable(true).all() -%}
|
||||||
<table class="template">
|
{%- set counter = ['1'] -%}
|
||||||
<thead>
|
{%- for page in pages -%}
|
||||||
<tr>
|
{%- if page._path == this.calendar_name -%}
|
||||||
<th>Datum</th>
|
{%- for blk in page.dates.blocks|sort(attribute='start', reverse = False) -%}
|
||||||
<th>Veranstaltung</th>
|
{%- if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') -%}
|
||||||
<th>Ort</th>
|
{%- if loop.index == 1 -%}
|
||||||
</tr>
|
{{- '\n ' -}} <table class="template">
|
||||||
</thead>
|
{{- '\n ' -}} <thead>
|
||||||
<tbody>
|
{{- '\n ' -}} <tr>
|
||||||
{%- set pages = site.query('/').include_undiscoverable(true).all() -%}
|
{{- '\n ' -}} <th>Datum</th>
|
||||||
{%- set counter = ['1'] -%}
|
{{- '\n ' -}} <th>Veranstaltung</th>
|
||||||
{%- for page in pages -%}
|
{{- '\n ' -}} <th>Ort</th>
|
||||||
{%- if page._path == this.calendar_name -%}
|
{{- '\n ' -}} </tr>
|
||||||
{%- for blk in page.dates.blocks|sort(attribute='start', reverse = False) -%}
|
{{- '\n ' -}} </thead>
|
||||||
{%- if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') -%}
|
{{- '\n ' -}} <tbody>
|
||||||
{%- if counter.append('1') -%}
|
{%- endif -%}
|
||||||
{#- Counter zum zaehlen ob es mehr wie 1 Temrin gibt -#}
|
{%- if counter.append('1') -%}
|
||||||
{%- endif -%}
|
{#- Counter zum zaehlen ob es mehr wie 1 Temrin gibt -#}
|
||||||
{{- '\n ' -}} <tr>
|
{%- endif -%}
|
||||||
{{- '\n ' -}} <th>
|
{{- '\n ' -}} <tr>
|
||||||
{%- if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') -%}
|
{{- '\n ' -}} <th>
|
||||||
{{- '\n ' -}}
|
{%- if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') -%}
|
||||||
{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr
|
{{- '\n ' -}}
|
||||||
{%- else -%}
|
{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr
|
||||||
{{- '\n ' -}}
|
{%- else -%}
|
||||||
{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}
|
{{- '\n ' -}}
|
||||||
{%- endif -%}
|
{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}
|
||||||
{{- '\n ' -}} </th>
|
{%- endif -%}
|
||||||
{{- '\n ' -}} <th>
|
{{- '\n ' -}} </th>
|
||||||
{{- '\n ' -}} <a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">
|
{{- '\n ' -}} <th>
|
||||||
{{- blk.event -}}
|
{{- '\n ' -}} <a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">
|
||||||
</a>
|
{{- blk.event -}}
|
||||||
{{- '\n ' -}} </th>
|
</a>
|
||||||
{{- '\n ' -}} <th>{{ blk.ort }}</th>
|
{{- '\n ' -}} </th>
|
||||||
{{- '\n ' -}} </tr>
|
{{- '\n ' -}} <th>{{ blk.ort }}</th>
|
||||||
{%- endif -%}
|
{{- '\n ' -}} </tr>
|
||||||
{%- endfor -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endfor -%}
|
||||||
{%- if counter|length < 2 %}
|
{%- endif -%}
|
||||||
{{- '\n ' -}} <tr>
|
{%- if counter|length < 2 and loop.index == 1 %}
|
||||||
{{- '\n ' -}} <th>Leider derzeit</th>
|
{{- '\n ' -}} <p><i>Leider derzeit noch keine neuen Termine geplant!</i></p>
|
||||||
{{- '\n ' -}} <th>noch keine neuen Termine</th>
|
{%- endif -%}
|
||||||
{{- '\n ' -}} <th>geplant!</th>
|
{%- endfor %}
|
||||||
{{- '\n ' -}} </tr>
|
{%- if counter|length > 1 -%}
|
||||||
{%- endif -%}
|
{{- '\n ' -}} </tbody>
|
||||||
{%- endfor %}
|
{{- '\n ' -}}</table>
|
||||||
{{- '\n ' -}} </tbody>
|
{{- '\n ' -}}<br/>
|
||||||
{{- '\n ' -}}</table>
|
{%- endif -%}
|
||||||
{{- '\n ' -}}<br/>
|
|
||||||
|
|
Loading…
Reference in a new issue