{{define "tree-section"}} {{.Matched}} / {{.Total}} items match {{if .OrphanN}} · {{.OrphanN}} unclassified mai-managed roots → classify{{end}} {{if .Filter.Active}} · clear filters{{end}} {{if .Filter.Tags}}{{end}} {{if .Filter.Management}}{{end}} {{if ne (join "," .Filter.Status) "active"}}{{end}} {{if .Filter.HasLinks}}{{end}} {{if .Filter.ShowArchived}}{{end}} {{if .Filter.ProjectPath}}{{end}} {{if and .Filter.ProjectPath (not .Filter.IncludeDescendants)}}{{end}} {{if ne .ViewType "list"}}{{end}} {{template "view-project-chip" .}} view: {{range .ViewTypeChips}} {{.Label}} {{end}} {{if .AllTags}} tag: {{range .Counts.Tags}} {{.Label}} ({{.Count}}) {{end}} {{end}} mgmt: {{range .Counts.Management}} {{.Label}} ({{.Count}}) {{end}} status: {{range .Counts.Status}} {{.Label}} ({{.Count}}) {{end}} show archived ({{.Counts.ShowArchived.Count}}) has: {{range .Counts.Has}} {{.Label}} ({{.Count}}) {{end}} {{if eq .ViewType "card"}} {{template "tree-card" .}} {{else}} {{range .Roots}} {{.Item.Title}} {{.Item.PrimaryPath}} {{range .Item.Management}}{{.}}{{end}} {{range .Item.Tags}}{{.}}{{end}} + {{template "children" .}} {{else}} No items match. Try fewer filters or clear all. {{end}} {{end}} {{end}} {{define "children"}} {{if .Children}}
{{.Matched}} / {{.Total}} items match {{if .OrphanN}} · {{.OrphanN}} unclassified mai-managed roots → classify{{end}} {{if .Filter.Active}} · clear filters{{end}}