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.

40 lines
1.1 KiB

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