{{template "repo/header" .}}
{{template "repo/issue/navbar" .}}
{{if and .CanWriteProjects (not .Repository.IsArchived)}} {{.locale.Tr "repo.issues.new"}} {{.locale.Tr "new_project_column"}} {{end}}

{{$.Project.Title}}

{{$.Project.RenderedContent|Str2html}}
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} {{end}}
{{range $board := .Boards}}
{{.NumIssues}}
{{.Title}}
{{if and $.CanWriteProjects (not $.Repository.IsArchived) (ne .ID 0)}} {{end}}
{{range (index $.IssuesMap .ID)}}
{{if eq $.Project.CardType 1}}{{/* Images and Text*/}}
{{range (index $.issuesAttachmentMap .ID)}} {{.Name}} {{end}}
{{end}}
{{if .IsPull}} {{if .PullRequest.HasMerged}} {{svg "octicon-git-merge" 16 "text purple"}} {{else}} {{if .IsClosed}} {{svg "octicon-git-pull-request" 16 "text red"}} {{else}} {{svg "octicon-git-pull-request" 16 "text green"}} {{end}} {{end}} {{else}} {{if .IsClosed}} {{svg "octicon-issue-closed" 16 "text red"}} {{else}} {{svg "octicon-issue-opened" 16 "text green"}} {{end}} {{end}} {{.Title}}
#{{.Index}} {{$timeStr := TimeSinceUnix .GetLastEventTimestamp $.locale}} {{if .OriginalAuthor}} {{$.locale.Tr .GetLastEventLabelFake $timeStr (.OriginalAuthor|Escape) | Safe}} {{else if gt .Poster.ID 0}} {{$.locale.Tr .GetLastEventLabel $timeStr (.Poster.HomeLink|Escape) (.Poster.GetDisplayName | Escape) | Safe}} {{else}} {{$.locale.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}} {{end}}
{{- if .MilestoneID}} {{- end}} {{- range index $.LinkedPRs .ID}} {{- end}}
{{if or .Labels .Assignees}}
{{range .Labels}} {{RenderLabel .}} {{end}}
{{range .Assignees}} {{avatar $.Context . 28 "mini gt-mr-3"}} {{end}}
{{end}}
{{end}}
{{end}}