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

What is due

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

{{if .ErrMsg}}{{end}}
{{template "scan-status.html" .Scan}}
{{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 .Summaries}}

Briefs

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