{% with dates=data.metadata.calendar.days.keys %} {% for date in dates %} {% if forloop.counter < 10 and date.day == 1 %}

{{ date|date:"F" }}

{% endif %} {% endfor %} {% endwith %} {% with selected=data.metadata.calendar.selected_date today=data.metadata.calendar.today %} {% for date, total in data.metadata.calendar.days.items %} {% if forloop.counter > 1 and forloop.counter|divisibleby:7 %} {% endif %} {% endfor %} {% endwith %}
Seg Ter Qua Qui Sex Sab Dom
{% if total is None %} {{ date.day }} {% else %} {{ date.day }} {% endif %}
{% if total %}
{{ total }}
{% endif %}
{% if data.metadata.calendar.selected_date %}
{{ data.metadata.calendar.selected_date }}
{% endif %}