{{ .Title }}
{{ with .Content }}{{ partial "month-name.html" (dict "month" $month "lang" $lang) }} {{ $year }}
{{/* The column header, at every width. It is what lets the weekday inside each cell be a label for a screen reader rather than ink in a fifty-pixel box. */}}-
{{ if gt $lead 0 }}{{ range seq $lead }}{{ end }}{{ end }}
{{ range $day := seq 1 $days }}
{{ $date := printf "%s-%02d" $key $day }}
{{/* By the hour, so two things on one day read in the order they
happen rather than in the order they were announced. The
private calendar has sorted this way since it was written
(apps/board/events.py: `ORDER BY starts_on, COALESCE(starts_at,
'99:99')`), and the two show the same events to the same
people. An event with no time sorts first here, which is right:
all day begins before the evening does. */}}
{{ $onThisDay := sort (where $events "Params.event_date" $date) "Params.event_time" }}
{{ $weekday := mod (add (sub $day 1) $lead) 7 }}
- {{ partial "weekday-name.html" (dict "weekday" $weekday "lang" $lang) }} {{ $day }} {{ with $onThisDay }} {{/* A phone cell is about fifty pixels wide, which holds a number and some dots and nothing else. The dots link to this day's block in the list below, so the month stays a month and the titles stay readable. */}} {{ range first 4 . }}{{ end }} {{ end }} {{ range $onThisDay }}{{ partial "agenda-event.html" . }}{{ end }} {{ end }}
{{ $day }} {{ partial "month-name.html" (dict "month" $month "lang" $lang) }} {{ $year }}
{{ range . }}{{ partial "agenda-event.html" . }}{{ end }}{{ partial "t.html" (dict "key" "noevents" "lang" $lang) }}
{{ end }}