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

59 lines
1.8 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_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>
{% 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 %}
</tbody>
</table>
</div>
{% endblock content_body %}
{% block content_footer %}
{% if page.written_at is defined %}
<footer class="content-footer">
<p>Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}</p>
</footer>
{% endif %}
{% endblock content_footer %}
</article>
{% endblock content_all %}
{% endif %}