{{define "item.html"}} {{.Title}} — Compass / Teams
{{if .Flash}}{{end}}

{{.Item.Title}}

{{.Item.TypeLabel}} {{if .Item.Subject}}{{.Item.Subject}}{{end}} {{if .Item.Teacher}}Teacher: {{.Item.Teacher}}{{end}} {{if .Item.DueLabel}}due {{.Item.DueLabel}}{{end}} {{if .Item.StatusLabel}}{{.Item.StatusLabel}}{{end}}

{{if .Item.BodyLines}}
{{range .Item.BodyLines}}

{{.}}

{{end}}
{{end}}
Child
{{.Child.Name}}
Source
{{.Item.Source}}{{if .Item.SourcePage}} · {{.Item.SourcePage}}{{end}}
{{if .Item.Importance}}
Importance
{{.Item.Importance}}
{{end}}
Calendar
{{if .Calendar.InCalendar}}in the calendar{{if .Calendar.PushedAt}} · {{.Calendar.PushedAt}}{{end}}{{if .Calendar.UID}} · {{.Calendar.UID}}{{end}} {{else if not .Calendar.Configured}}not configured {{else if .Calendar.Eligible}}not written yet {{else}}not a calendar item{{end}}
{{if .Item.ExternalRef}}
Reference
{{.Item.ExternalRef}}
{{end}} {{if .Item.DueAt}}
Due
{{.Item.DueLabel}}
{{end}}
{{if .Item.URL}}Open in Compass{{end}} {{if and .Calendar.Configured .Calendar.Eligible (not .Calendar.InCalendar)}}
{{end}}
{{if not .Scan.OK}} {{end}}
{{end}}