{% macro list(page,this) %}
{% set timerpresent = namespace(v="False") %} {% for child in page %} {% if child.start_date < today and timerpresent.v == "False" %} {% set timerpresent.v = True %}
---past---
{% endif %} {% set class = "" %} {% if child.format == "Extratonal Infrastructure" %} {% set class = "infrastructure" %} {% elif child.format == "Extratonal Education" %} {% set class = "education" %} {% elif child.format == "Radio Extratonality" %} {% set class = "radio" %} {% else %} {% set class = "misc" %} {% endif %} {% if child.format == "Extratonal Infrastructure" %} 🎛️ {% elif child.format == "Extratonal Education" %} 📚 {% elif child.format == "Radio Extratonality" %} 📻 {% else %} ❓ {% endif %} {{child.start_date|datetimeformat('yyyy/MM/dd H:mm')}} {{ child.title }} @ {{ child.location}} {% endfor %}
{% endmacro %}