{{end}}
{{/* One task segment. */}}
{{define "seg"}}
{{.ID}} {{.Title}}: {{statusLabel .Status}}
{{end}}
{{/* Segments of one epic. */}}
{{define "epicsegs"}}{{if .Tasks}}{{range .Tasks}}{{template "seg" .}}{{end}}{{end}}{{end}}
{{/* One milestone as a lane: lane number, one bar grouped by epic, and a row per epic. */}}
{{define "lane"}}{{$mid := .ID}}
{{end}}
{{/* Breadcrumb for a task: Milestone, epic, task id. */}}
{{define "where"}}Milestone {{.MilestoneNo}} › {{.EpicCode}} {{.EpicTitle}}{{end}}
{{/* Breadcrumb trail for the milestone, epic and task pages. */}}
{{define "crumbs"}}{{if .}}{{end}}{{end}}
{{/* Status mix of a milestone or epic, as text. */}}
{{define "countline"}}Reviewed {{.Reviewed}}Done {{.Done}}In Progress {{.InProgress}}Wait for review {{.Review}}Todo {{.Todo}}{{end}}
{{define "chip"}}{{statusLabel .}}{{end}}
{{/* Attached files: repo paths open in the file viewer in a new tab. */}}
{{define "refs"}}{{if .}}
{{end}}{{end}}
{{/* Review details: state, reviewer, what to check, numbered checklist, decision. Used by the review page and the task page. */}}
{{define "reviewbody"}}{{with .Review}}{{$st := .StateOrTodo}}