{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
{{ctx.Locale.Tr "repo.projects.new"}}
{{end}} {{template "base/alert" .}}
{{range .Projects}}
  • {{svg .IconName 16}} {{.Title}}

    {{svg "octicon-issue-opened" 14}} {{ctx.Locale.PrettyNumber .NumOpenIssues}} {{ctx.Locale.Tr "repo.issues.open_title"}}
    {{svg "octicon-check" 14}} {{ctx.Locale.PrettyNumber .NumClosedIssues}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
    {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} {{end}}
    {{if .Description}}
    {{.RenderedContent}}
    {{end}}
  • {{else}} {{if and (eq .OpenCount 0) (eq .ClosedCount 0)}}
    {{svg "octicon-project-symlink" 48}}

    {{ctx.Locale.Tr "repo.projects.empty"}}

    {{ctx.Locale.Tr "repo.projects.empty_description"}}

    {{else}}
    {{svg "octicon-search" 48}}

    {{ctx.Locale.Tr "repo.projects.no_results"}}

    {{end}} {{end}} {{template "base/paginate" .}}
    {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} {{end}}