29 lines
760 B
HTML
29 lines
760 B
HTML
{% macro list(page,this) %}
|
|
<div class="list">
|
|
{% set timerpresent = namespace(v="False") %}
|
|
{% for child in page %}
|
|
{% if child.start_date < today and timerpresent.v == "False" %}
|
|
{% set timerpresent.v = True %}
|
|
<br>
|
|
<br>
|
|
{% endif %}
|
|
<a href="{{ child|url }}" {% if child == this %} class="active"{% endif %}>
|
|
<span>
|
|
{% if child.format == "Extratonal Infrastructure" %}
|
|
🎛️
|
|
{% endif %}
|
|
{% if child.format == "Extratonal Education" %}
|
|
📚
|
|
{% endif %}
|
|
{% if child.format == "Extratonal Radio" %}
|
|
📻
|
|
{% endif %}
|
|
<bold>{{child.start_date|datetimeformat('yyyy/MM/dd H:mm')}} </bold>
|
|
{{ child.title }} @
|
|
{{ child.location}}
|
|
</span>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endmacro %}
|