{{$root := ctx.RootData -}} {{$replyReviewComment := $.ReplyReviewComment -}}{{/* can be nil */ -}} {{$canAddComment := and $root.SignedUserID (not $root.Repository.IsArchived) -}} {{if $canAddComment}}
{{template "shared/combomarkdowneditor" (dict "CustomInit" true "MarkdownEditorContext" (ctx.MiscUtils.MarkdownEditorComment $root.Repository) "TextareaName" "content" "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder") "DropzoneParentContainer" "form" "DisableAutosize" "true" )}}
{{if $root.IsAttachmentEnabled}}
{{template "repo/upload" dict "UploadOptions" $root.UploadOptions}}
{{end}}
{{end}}