{# vim: ft=htmljinja #}
{{ firstDay|date('Y-m') }}
H | K | Sze | Cs | P | Szo | V | |
{{ firstDay|date('W') }} | {% set curDow = 0 %} {% if firstDayWeekday != 1 %} {% for i in 1..(firstDayWeekday - 1) %} {% set curDow = curDow + 1 %}{% if curDow == 8 %}{% set curDow = 1 %}{% endif %}{% endfor %} {% endif %} {% set cur = firstDayWeekday - 1 %} {% for i in 1..numDays %} {% set cur = cur + 1 %} {% set curDow = curDow + 1 %}{% if curDow == 8 %}{% set curDow = 1 %}{% endif %} {% set eventCount = 0 %} {# TODO Check if an event occurs on this date: (event.startDate = this day AND event.endDate is NULL) OR (event.startDate <= this day AND evend.endDate >= this day) #} | 0 %} class="program"{% endif %}> {{ eventList[i].date|date('d') }} {% if eventList[i].events|length > 0 %} {% endif %} | {% if cur is divisibleby(7) %}|||||
{{ eventList[i + 1].date|date('W') }} | {% endif %} {% endif %} {% endfor %} {% if curDow != 7 %} {% for i in (curDow + 1)..7 %}{% endfor %} {% endif %} |