{{if .IsSigned}} {{if and (or .IsRepoAdmin .HasIssuesOrPullsWritePermission (not (and .IsIssue .Issue.IsLocked))) (not .Repository.IsArchived)}}
{{ctx.AvatarUtils.Avatar .SignedUser 40}}
{{template "repo/conversation/comment_tab" .}} {{.CsrfTokenHtml}}
{{else if .Repository.IsArchived}}
{{if and .IsIssue .Issue.IsPull}} {{ctx.Locale.Tr "repo.archive.pull.nocomment"}} {{else}} {{ctx.Locale.Tr "repo.archive.issue.nocomment"}} {{end}}
{{end}} {{else}} {{/* not .IsSigned */}} {{if .Repository.IsArchived}}
{{if .IsIssue and .Issue.IsPull}} {{ctx.Locale.Tr "repo.archive.pull.nocomment"}} {{else}} {{ctx.Locale.Tr "repo.archive.issue.nocomment"}} {{end}}
{{else}}
{{ctx.Locale.Tr "repo.issues.sign_in_require_desc" .SignInLink}}
{{end}} {{end}}{{/* end if: .IsSigned */}}