{{define "calendar-status.html"}} {{/* Fail-loudly calendar banner (FR-8, FR-12). A missing target or a failed write is never hidden: the family must not assume an event was written. */}}

Calendar

{{if eq .Level "ok"}}healthy {{else if eq .Level "error"}}failed {{else if eq .Level "warn"}}attention {{else}}off{{end}}

{{.Message}}

{{if .Entity}}

{{.Entity}}{{if .LastAt}} · last write {{.LastAt}}{{end}} {{if gt .Written 0}}· {{.Written}} event(s) written{{end}}

{{end}} {{if gt .Failed 0}}

{{.Failed}} failed calendar write(s) on record.

{{end}}
{{end}}