Files

22 lines
706 B
Handlebars
Raw Permalink Normal View History

{{$textareaContent := .BodyQuery}}
{{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}}
{{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}}
{{if not $textareaContent}}{{$textareaContent = .content}}{{end}}
<div class="field">
{{template "shared/combomarkdowneditor" (dict
"CustomInit" true
2026-03-07 21:37:37 +01:00
"MarkdownEditorContext" (ctx.MiscUtils.MarkdownEditorComment $.Repository)
"TextareaName" "content"
"TextareaContent" $textareaContent
"TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
"DropzoneParentContainer" "form, .ui.form"
)}}
</div>
2015-08-12 18:44:09 +08:00
{{if .IsAttachmentEnabled}}
<div class="field">
{{template "repo/upload" .}}
</div>
2015-12-07 23:30:52 +01:00
{{end}}