varia.website/plugins/events/events_list.html

37 lines
748 B
HTML
Raw Normal View History

2018-02-01 14:46:15 +01:00
{% extends "base.html" %}
{% block title %} Events list - {{ SITENAME }}{% endblock %}
{% block content %}
{% if events_list %}
<ul class="post-list">
{% for evstart, evend, event in events_list %}
<li>
<p>
<a href="../{{event.slug}}.html">
<b>{{event['title']}}</b>
</a>
</p>
<p>
{% if evstart.date() == evend.date() %}
From {{evstart}} to {{evend.time()}}
{% else %}
From {{evstart}} to {{evend}}
{% endif %}
</p>
{% if event.location %}
<p>Location: {{event.location}}</p>
{% endif %}
<p>{{event['summary']}}</p>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}