{% for week in grid %} {% set wstart, wend = week_date_range(week) %} {% set weekly = find_weekly_for_range(weeklies, wstart, wend) if wstart else None %} {% if weekly %} {% endif %} {% for cell in week %} {% if cell.day == 0 %} {% else %} {% endif %} {% endfor %} {% endfor %}
MonTueWedThuFriSatSun
{{ weekly.tap_title }}
{{ cell.day }}
{% if cell.date in dailies %}
{% for d in dailies[cell.date] %} {{ d.title[:20] }}{% if d.title|length > 20 %}…{% endif %} {% endfor %}
{% endif %}