{{define "chain-detail"}}

{{.ProjectName}}

{{.Chain.Status}} {{range $i, $t := .Tasks}}{{if $t.ChainUnlocked}} · step {{add $i 1}} of {{len $.Tasks}}{{end}}{{end}}

{{if eq .Chain.Status "active"}} {{else if eq .Chain.Status "paused"}} {{end}}
{{range $i, $t := .Tasks}}
{{if $t.Completed}} {{else if $t.ChainUnlocked}} {{else}} 🔒 {{end}}
{{add $i 1}}. {{$t.Content}} {{if $t.Description}}

{{$t.Description}}

{{end}}
{{end}}
{{end}}