60 lines
1.9 KiB
HTML
60 lines
1.9 KiB
HTML
{% extends "page.html" %}
|
||
|
||
{% if page.termine %}
|
||
{% set date_format = "%d.%m." %}
|
||
{% set time_format = "%H:%M" %}
|
||
|
||
{% block content_all %}
|
||
<article>
|
||
|
||
{% block content_header %}
|
||
{{ super() }}
|
||
{% endblock content_header %}
|
||
|
||
{% block content_body %}
|
||
{% if page.featured_image %}
|
||
<div>
|
||
{% from 'includes/macros.html' import fi %}
|
||
{% set i = page.featured_image[0] %}
|
||
{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}
|
||
</div>
|
||
{% endif %}
|
||
|
||
<div id="content-body">
|
||
<table class="events">
|
||
<thead>
|
||
<tr>
|
||
<th class="event-info">Wann & Wo</th>
|
||
<th class="event-detail">Was & Wieso</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{# loop over all events that have not started yet #}
|
||
{% for t in page.termine if t.enddate >= DATETIME_NOW %}
|
||
<tr>
|
||
<td class="event-info"><strong>{{ t.startdate | strftime(date_format) }}{% if t.enddate %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ 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 %}<p>{{ t.description | replace("\n\n", "</p><p>") | replace("\n", "<br>") | replace("</p><br><p>", "</p><p>")}}</p>{% endif %}
|
||
{% if t.attach %}<p><a href="{{ t.attach }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
{% endblock content_body %}
|
||
|
||
{% block content_footer %}
|
||
{% if page.written_at %}
|
||
<footer class="content-footer">
|
||
<p>Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y") }}</p>
|
||
</footer>
|
||
{% endif %}
|
||
{% endblock content_footer %}
|
||
|
||
</article>
|
||
{% endblock content_all %}
|
||
{% endif %}
|
||
|