{{$createdStr:= TimeSinceUnix .Issue.CreatedUnix $.locale}}
{{if .Issue.OriginalAuthor}} {{else}} {{ctx.AvatarUtils.Avatar .Issue.Poster 40}} {{end}}
{{if .Issue.OriginalAuthor}} {{svg (MigrationIcon .Repository.GetOriginalURLHostname)}} {{.Issue.OriginalAuthor}} {{.locale.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} {{if .Repository.OriginalURL}} ({{$.locale.Tr "repo.migrated_from" (.Repository.OriginalURL|Escape) (.Repository.GetOriginalURLHostname|Escape) | Safe}}){{end}} {{else}} {{ctx.AvatarUtils.Avatar .Issue.Poster 24}} {{template "shared/user/authorlink" .Issue.Poster}} {{.locale.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} {{end}}
{{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}} {{if not $.Repository.IsArchived}} {{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}} {{end}} {{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" .Issue "delete" false "issue" true "diff" false "IsCommentPoster" $.IsIssuePoster}}
{{if .Issue.RenderedContent}} {{.Issue.RenderedContent|Str2html}} {{else}} {{.locale.Tr "repo.issues.no_content"}} {{end}}
{{.Issue.Content}}
{{if .Issue.Attachments}} {{template "repo/issue/view_content/attachments" dict "ctxData" $ "Attachments" .Issue.Attachments "Content" .Issue.RenderedContent}} {{end}}
{{$reactions := .Issue.Reactions.GroupByType}} {{if $reactions}} {{template "repo/issue/view_content/reactions" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions}} {{end}}
{{template "repo/issue/view_content/comments" .}} {{if and .Issue.IsPull (not $.Repository.IsArchived)}} {{template "repo/issue/view_content/pull".}} {{end}} {{if .IsSigned}} {{if and (or .IsRepoAdmin .HasIssuesOrPullsWritePermission (not .Issue.IsLocked)) (not .Repository.IsArchived)}}
{{ctx.AvatarUtils.Avatar .SignedUser 40}}
{{template "repo/issue/comment_tab" .}} {{.CsrfTokenHtml}}
{{else if .Repository.IsArchived}}
{{if .Issue.IsPull}} {{.locale.Tr "repo.archive.pull.nocomment"}} {{else}} {{.locale.Tr "repo.archive.issue.nocomment"}} {{end}}
{{end}} {{else}} {{/* not .IsSigned */}} {{if .Repository.IsArchived}}
{{if .Issue.IsPull}} {{.locale.Tr "repo.archive.pull.nocomment"}} {{else}} {{.locale.Tr "repo.archive.issue.nocomment"}} {{end}}
{{else}}
{{.locale.Tr "repo.issues.sign_in_require_desc" (.SignInLink|Escape) | Safe}}
{{end}} {{end}}{{/* end if: .IsSigned */}}
{{template "repo/issue/view_content/sidebar" .}}
{{template "repo/issue/view_content/reference_issue_dialog" .}}
{{.locale.Tr "repo.issues.no_content"}}