{{define "content"}}

Manuscripts

{{if not .Columns}}

No manuscripts registered. Run manus init <dir>.

{{end}}
{{range .Columns}}

{{or .Stage "no stage"}} {{len .Cards}}

{{range .Cards}}{{$c := .Counts}}
{{.M.ID}} {{with .M.Get "title"}}

{{.}}

{{end}}

{{or (.M.Get "kind") "?"}} {{with .M.Get "revision"}}r{{.}}{{end}} {{with .M.Get "role"}}{{.}}{{end}} {{with .M.Get "journal"}}{{.}}{{end}}

{{index $c "todo"}} todo {{index $c "doing"}} doing {{index $c "blocked"}} blocked {{index $c "done"}} done

{{with .M.Get "deadline"}}

due {{.}}

{{end}} {{with .M.Get "ball"}}

ball with {{.}}

{{end}} {{if .Flags}}

{{range .Flags}}{{.}} {{end}}

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