#{{.Issue.Index}} {{.Issue.Title}}

{{if and (or .IsIssueWriter .IsIssuePoster) (not .Repository.IsArchived)}}
{{.i18n.Tr "repo.issues.edit"}}
{{end}}
{{if .HasMerged}}
{{svg "octicon-git-pull-request" 16}} {{.i18n.Tr "repo.pulls.merged"}}
{{else if .Issue.IsClosed}}
{{svg "octicon-issue-closed" 16}} {{.i18n.Tr "repo.issues.closed_title"}}
{{else if .Issue.IsPull}}
{{svg "octicon-git-pull-request" 16}} {{.i18n.Tr "repo.issues.open_title"}}
{{else}}
{{svg "octicon-issue-opened" 16}} {{.i18n.Tr "repo.issues.open_title"}}
{{end}} {{if .Issue.IsPull}} {{if .Issue.PullRequest.HasMerged}} {{ $mergedStr:= TimeSinceUnix .Issue.PullRequest.MergedUnix $.Lang }} {{if .Issue.OriginalAuthor }} {{.Issue.OriginalAuthor}} {{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Str2html}} {{else}} {{.Issue.PullRequest.Merger.GetDisplayName}} {{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Str2html}} {{end}} {{else}} {{if .Issue.OriginalAuthor }} {{.Issue.OriginalAuthor}} {{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}} {{else}} {{.Issue.Poster.GetDisplayName}} {{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}} {{end}} {{end}} {{else}} {{ $createdStr:= TimeSinceUnix .Issue.CreatedUnix $.Lang }} {{if .Issue.OriginalAuthor }} {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.OriginalAuthor | Safe}} {{else if gt .Issue.Poster.ID 0}} {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink (.Issue.Poster.GetDisplayName|Escape) | Safe}} {{else}} {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr (.Issue.Poster.GetDisplayName|Escape) | Safe}} {{end}} ยท {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}} {{end}}