t-r.de/theme/templates/termine.html

42 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "page.html" %}
{% if page.termine is defined %}
{% set date_format = "%d.%m." %}
{% set time_format = "%H:%M" %}
{% block content_body %}
{% if page.featured_image %}
{% from 'includes/macros.html' import fi %}
{% set i = page.featured_image[0] %}
<article id="no-bottom-margin">{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}</article>
{% endif %}
<article id="page-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 %}
<tr><td colspan="2"><small class="tr-muted">Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}</small></td></tr>
</body>
</table>
</article>
{% endblock content_body %}
{% if page.written_at is defined %}
{% block content_footer %}
{% endblock content_footer %}
{% endif %}
{% endif %}