{% load cal_tags %} {# Context: d (one day of the monthly grid), calendar, cal_options #} {# When the calendar offers a day view, a day opens it: tapped on a phone, clicked or entered on a desktop. #} {# Without one, a phone's day and "+N more" open the day's events in the modal. #} {% 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 %} {% else %} {% url 'htmx_calendar:day_events' calendar_slug=calendar.slug year=d.date.year month=d.date.month day=d.date.day as day_events_url %} {% endif %} {# Mobile: the day number, and a dot when the day has events. #} {# Desktop. The event links inside stop their click from reaching the cell. #}