{% load cal_tags %} {# Context: days (the week), calendar, cal_options, allday_bars #} {# When the calendar offers a day view, a day's header opens it, as a day of the month grid does. #}
{# Mobile #}
{% for d in days|slice:":7" %} {% if "daily" in cal_options.views %} {% url 'htmx_calendar:daily' calendar_slug=calendar.slug year=d.date.year month=d.date.month day=d.date.day as day_url %} {% endif %} {% endfor %}
{# Desktop #} {# Events of a day or more, in the sticky header so they stay while the hours scroll #} {% if allday_bars %}{% cal_include "allday_row" %}{% endif %}