{{define "dashboard.html"}} {{.Title}} — Compass / Teams

What is due

Overdue first. Compass for the schedule and notices, Teams for homework.

{{if .ErrMsg}}{{end}} {{if .Flash}}

{{.Flash}}

{{end}}
{{template "scan-status.html" .Scan}}
{{template "calendar-status.html" .Calendar}}

Morning briefs

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

{{.Notify.Message}}

{{if or (gt .Notify.Sent 0) (gt .Notify.Failed 0)}}

{{.Notify.Sent}} delivered · {{.Notify.Failed}} failed{{if .Notify.LastAt}} · last attempt {{.Notify.LastAt}}{{end}}

{{end}}
{{if .Tabs}} {{end}} {{if .HasChild}}

{{.Child.Name}}

{{if .Child.Year}}Year {{.Child.Year}} · {{end}}{{.Child.Headline}}

{{if eq .Child.Scan.Level "ok"}}scan healthy {{else if eq .Child.Scan.Level "error"}}scan failed {{else}}no scan yet{{end}}
{{if not .Child.Scan.OK}} {{end}} {{range .Child.Sections}}

{{.Title}}

{{len .Items}}
{{if .Items}}
    {{range .Items}}
  • {{.Title}}

    {{.TypeLabel}} {{if .Subject}}{{.Subject}}{{end}} {{if .DueLabel}}due {{.DueLabel}}{{end}} {{if .StatusLabel}}{{.StatusLabel}}{{end}}

  • {{end}}
{{else}}

{{.Empty}}

{{end}}
{{end}}
{{if .Child.LaterCount}}{{.Child.LaterCount}} due later{{end}} {{if .Child.DoneCount}}{{.Child.DoneCount}} submitted{{end}}
{{else}}

No children on file

Harry and Finn are seeded on first start. If this is empty, the database was not seeded.

{{end}} {{if .Send.Scopes}}

Send a brief

Apprise
{{if not .Send.Enabled}} {{else}} {{range .Send.Scopes}}
{{.Label}}
Recipients
{{range .Recipients}} {{end}}
Channels
{{range $.Send.Channels}} {{end}}
{{if .Warning}}{{end}}
The preview is exactly what is sent. Overdue first, lists only.
preview ({{len .Preview}} bytes)
{{.Preview}}
{{end}} {{end}}
{{end}} {{if .Summaries}}

Sends

{{len .Summaries}}
{{end}}
{{end}}