extratonal.org website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
1.1 KiB

{% 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>
---past---
<br>
{% 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 %}
<a href="{{ child|url }}" class="{{class}}{% if child == this %} active{% endif %}">
<span>
{% if child.format == "Extratonal Infrastructure" %}
🎛️
{% elif child.format == "Extratonal Education" %}
📚
{% elif child.format == "Radio Extratonality" %}
📻
{% else %}
{% endif %}
<bold>{{child.start_date|datetimeformat('yyyy/MM/dd H:mm')}} </bold>
{{ child.title }} @
{{ child.location}}
</span>
</a>
{% endfor %}
</div>
{% endmacro %}