{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}

{{.Project.Title}}

{{if $canWriteProject}} {{end}}
{{$.Project.RenderedContent}}
{{range .Columns}}
{{.NumIssues ctx}}
{{.Title}}
{{if $canWriteProject}} {{end}}
{{range (index $.IssuesMap .ID)}}
{{template "repo/issue/card" (dict "Issue" . "Page" $)}}
{{end}}
{{end}}
{{if .CanWriteProjects}} {{end}}