Improve header 6

This commit is contained in:
L3D 2019-02-16 16:05:53 +01:00
parent d22c039856
commit 8a56d5bee4
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 39 additions and 17 deletions

View file

@ -110,3 +110,11 @@ hinweis_url: /mitmachen/
sections: sections:
--- ---
render_tourdaten: yes render_tourdaten: yes
---
icons_header_2: Worum geht es bei den Waffeln
---
icons_text_2:
Das C3WOC macht nicht einfach Waffeln, die man für Geld kaufen kann.
<b>Sondern es geht um viel mehr!</b>

View file

@ -86,6 +86,15 @@ label = Render Termine?
default = false default = false
type = boolean type = boolean
[fields.icons_header_2]
label = 4. Abschnitt: Überschrift (nach tourdaten)
type = string
[fields.icons_text_2]
label = 4. Abschnitt: Text (nach tourdaten)
type = markdown
[fields.icons_1_1] [fields.icons_1_1]
label = 1. Icon: Font Awesome label = 1. Icon: Font Awesome
type = string type = string

View file

@ -65,34 +65,39 @@
if this.render_tourdaten %} if this.render_tourdaten %}
<div class="table-wrapper"> <div class="table-wrapper">
<div class="table-wrapper"> <div class="table-wrapper">
<table><thead> <table>
<tr> <thead>
<th>Datum</th> <tr>
<th>Veranstaltung</th> <th>Datum</th>
<th>Ort</th> <th>Veranstaltung</th>
</tr> <th>Ort</th>
</thead> </tr>
<tbody>{% </thead>
<tbody>{%
set pages = site.query('/').include_undiscoverable(true).all() %}{% set pages = site.query('/').include_undiscoverable(true).all() %}{%
for page in pages %}{% for page in pages %}{%
if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{% if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{%
for blk in page.termine.blocks|sort(attribute='start', reverse = False) %}{% for blk in page.termine.blocks|sort(attribute='start', reverse = False) %}{%
if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %} if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %}
<tr> <tr>
<th>{% <th>{%
if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') %}{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr{% if blk.start.strftime('%d.%m') == blk.ende.strftime('%d.%m') %}{{ blk.start.strftime('%d.%m.%y %H') }} - {{ blk.ende.strftime('%H') }} Uhr{%
else %}{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}{% else %}{{ blk.start.strftime('%d.%m') }} - {{ blk.ende.strftime('%d.%m.%Y') }}{%
endif %}</th> endif %}</th>
<th><a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">{{ blk.event }}</a></th> <th><a href="{{ blk.url }}" title="{{ blk.description|replace("|", " ") }}">{{ blk.event }}</a></th>
<th>{{ blk.ort }}</th> <th>{{ blk.ort }}</th>
</tr>{% </tr>{%
endif %}{% endif %}{%
endfor %} endfor %}
</tbody> </tbody>
</table> </table><br/>
</div>{% </div>{%
endif %}{% endif %}{%
endfor %} endfor %}
<header class="major">
<h2>{{ this.icons_header_2 }}</h2>
{{ this.icons_text_2 }}
</header>
{% endif %} {% endif %}
<div class="box alt"> <div class="box alt">
<div class="row uniform"> <div class="row uniform">