{{svg "octicon-kebab-horizontal"}}
{{$referenceUrl := ""}} {{if .issue}} {{$referenceUrl = printf "%s#%s" .ctxData.Issue.Link .item.HashTag}} {{else}} {{$referenceUrl = printf "%s/files#%s" .ctxData.Issue.Link .item.HashTag}} {{end}}
{{ctx.Locale.Tr "repo.issues.context.copy_link"}}
{{if .ctxData.IsSigned}} {{$needDivider := false}} {{if not .ctxData.Repository.IsArchived}} {{$needDivider = true}}
{{ctx.Locale.Tr "repo.issues.context.quote_reply"}}
{{if not .ctxData.UnitIssuesGlobalDisabled}}
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
{{end}} {{if or .ctxData.Permission.IsAdmin .IsCommentPoster .ctxData.HasIssuesOrPullsWritePermission}}
{{ctx.Locale.Tr "repo.issues.context.edit"}}
{{if .delete}}
{{ctx.Locale.Tr "repo.issues.context.delete"}}
{{end}} {{end}} {{end}} {{$canUserBlock := call .ctxData.CanBlockUser .ctxData.SignedUser .item.Poster}} {{$canOrgBlock := and .ctxData.Repository.Owner.IsOrganization (call .ctxData.CanBlockUser .ctxData.Repository.Owner .item.Poster)}} {{if or $canOrgBlock $canUserBlock}} {{if $needDivider}}
{{end}} {{if $canUserBlock}}
{{ctx.Locale.Tr "user.block.block.user"}}
{{end}} {{if $canOrgBlock}}
{{ctx.Locale.Tr "user.block.block.org"}}
{{end}} {{end}} {{end}}