{# Week days #}
{# Show short weekdays on tablets #} {% for weekday in weekdays_short %}
{{ weekday.name }} {% if smart %} {{ weekday.date }} {% if weekday.holiday %}
{% include "chronos/partials/holiday.html" with holiday=weekday.holiday %} {% endif %} {% if weekday.date == today %}
{% include "chronos/partials/today.html" %} {% endif %} {% endif %}
{% endfor %} {# Show long weekdays elsewere #} {% for weekday in weekdays %}
{{ weekday.name }} {% if smart %} {{ weekday.date }} {% if weekday.holiday %}
{% include "chronos/partials/holiday.html" with holiday=weekday.holiday %} {% endif %} {% if weekday.date == today %}
{% include "chronos/partials/today.html" %} {% endif %} {% endif %}
{% endfor %}
{# Lessons #} {% for row in timetable %}
{% if row.type == "period" %} {% include "chronos/partials/period_time.html" with period=row.period periods=periods %} {% endif %}
{% for col in row.cols %} {# A lesson #}
{% if row.type == "period" %} {% include "chronos/partials/elements.html" with elements=col week_day=forloop.counter0 active_day=active_day.weekday %} {% else %} {% include "chronos/partials/supervision.html" with supervision=col %} {% endif %}
{% endfor %}
{% endfor %}