{% extends "base.html" %} {% block content %}

Drehplan

{% for d in days if (d.index < 5) or (d.lectures|length) > 0%}{% endfor %} {% for t in times %} {% set time_loop = loop %} {% if ((loop.index - 1) is divisibleby 4) %} {% endif %} {% for d in days if (d.index < 5) or (d.lectures|length) > 0 %} {% for i in range(1,d.maxcol+1) %} {% for l in d.lectures|selectattr('schedule_col','equalto',i) if (((l.time.time() > t) and (l.time.time() < times[time_loop.index+1])) != (l.time.time() == t ) ) %} {% else %} {% for l in d.lectures|selectattr('schedule_col','equalto',i) if (l.time.time() < t) and (l.time_end.time() > t) %} {% else %} {% endfor %} {% endfor %} {% endfor %} {% endfor %} {% endfor %}
{{ d.date.strftime("%A (%d.%m.%Y)") }}
{{ t.strftime("%H:%M") }}

{{l.short}}{{l.short}}
{{l.time.strftime("%H:%M")}} - {{l.time_end.strftime("%H:%M")}}
{{l.place}}

{% endblock %}