{{template "repo/header" .}}
{{if .PinnedIssues}}
{{range .PinnedIssues}}
{{if eq $.Project.CardType 1}}
{{range (index $.issuesAttachmentMap .ID)}} {{.Name}} {{end}}
{{end}}
{{template "shared/issueicon" .}}
{{.Title | RenderEmoji $.Context | RenderCodeBlock}} {{if $.IsRepoAdmin}} {{svg "octicon-x" 16}} {{end}}
#{{.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}}
{{if or .Labels .Assignees}}
{{range .Labels}} {{RenderLabel $.Context .}} {{end}}
{{range .Assignees}} {{avatar $.Context . 28 "mini gt-mr-3"}} {{end}}
{{end}}
{{end}}
{{end}}
{{template "repo/issue/navbar" .}} {{template "repo/issue/search" .}} {{if not .Repository.IsArchived}} {{if .PageIsIssueList}} {{.locale.Tr "repo.issues.new"}} {{else}} {{.locale.Tr "repo.pulls.new"}} {{end}} {{else}} {{if not .PageIsIssueList}} {{$.locale.Tr "action.compare_commits_general"}} {{end}} {{end}}
{{if and ($.CanWriteIssuesOrPulls) (gt (len .Issues) 0)}} {{end}} {{template "repo/issue/openclose" .}}
{{template "repo/issue/openclose" .}}
{{template "shared/issuelist" dict "." . "listType" "repo"}}