{% load cal_tags %}
{% cal_include "header_section" mode=view_mode %}
{% cal_include "weekly_table_header" %}
{# Stacked time-grid: background lines/labels + foreground events #}
{# --- Day columns, under the lines: a day holding an unavailable event is tinted --- #} {# --- Horizontal lines + hour labels (background layer) --- #}
{# Header spacer row (matches the 1.75rem header in grid-template-rows) #}
{# One row per slot (e.g. 96 for 15-min resolution) #} {% for label in timegrid_slot_labels %}
{% if label %} {% endif %}
{% endfor %}
{# --- Events overlay (foreground layer) --- #}
    {# Overlapping events share their cluster's width; the others take the whole column. #} {% for d in days %} {% for cluster in d.timegrid_clusters %}
  1. {% for ev in cluster.events %}{% cal_include "timegrid_event" %}{% endfor %}
  2. {% endfor %} {% endfor %}