{% load cal_tags %}
{% cal_include "header_section" mode=view_mode %}
{% cal_include "monthly_table_header" %}
{% for week in weeks %} {# A week row: its days, and over them the bars of events lasting a day or more #}
{% for d in week.days %} {% cal_include "monthly_day" %} {% endfor %} {% if week.bars %}{% cal_include "monthly_bars" %}{% endif %}
{% endfor %}