35 lines
1.7 KiB
HTML
35 lines
1.7 KiB
HTML
{% extends "page.html" %}
|
||
{# note that this template's filename is ''termine.noformat.html'' and not ''termine.html''. This is because vscodium's autoformat breaks the ''replace'' filters in the summary line, which is bad. By setting an exlude rule for all "noformat.html" files in vscodium's settings.json file, autoformat will now ignore this file. #}
|
||
{% if page.termine is defined %}
|
||
{% set date_format = "%d.%m." %}
|
||
{% set time_format = "%H:%M" %}
|
||
{% block content_body %}
|
||
<table class="events">
|
||
<thead>
|
||
<tr>
|
||
<th class="event-info">Wann & Wo</th>
|
||
<th class="event-detail">Was & Wieso</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for t in page.termine %}
|
||
<tr>
|
||
<td class="event-info"><strong>{{ t.startdate | strftime(date_format) }}{% if t.enddate is defined %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime is defined %} {{ t.starttime | strftime(time_format) }}{% endif %}</strong><br>{{ t.location }}</td>
|
||
<td class="event-detail">
|
||
<p>{{ t.summary }} {% if "Moderation" in t.categories %}(Moderation){%endif%}</p>
|
||
{% if t.description is defined %}<p>{{ t.description | replace("\n\n", "</p><p>") | replace("\n", "<br>") | replace("</p><br><p>", "</p><p>")}}</p>{% endif %}
|
||
{% if t.attach is defined %}<p><a href="{{ t.attach }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</body>
|
||
</table>
|
||
{% endblock content_body %}
|
||
|
||
{% if page.written_at is defined %}
|
||
{% block content_footer %}
|
||
<p style="text-align: center";>Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}</p>
|
||
{% endblock content_footer %}
|
||
{% endif %}
|
||
{% endif %}
|