2023-04-03 04:06:57 -06:00
|
|
|
{{$textareaContent := .BodyQuery}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .content}}{{end}}
|
|
|
|
|
2023-04-07 11:03:29 -06:00
|
|
|
<div class="field">
|
|
|
|
{{template "shared/combomarkdowneditor" (dict
|
2024-12-03 19:11:34 -07:00
|
|
|
"CustomInit" true
|
|
|
|
"MarkdownPreviewInRepo" $.Repository
|
|
|
|
"MarkdownPreviewMode" "comment"
|
2023-04-07 11:03:29 -06:00
|
|
|
"TextareaName" "content"
|
|
|
|
"TextareaContent" $textareaContent
|
2024-12-03 19:11:34 -07:00
|
|
|
"TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
|
2023-04-07 11:03:29 -06:00
|
|
|
"DropzoneParentContainer" "form, .ui.form"
|
|
|
|
)}}
|
|
|
|
</div>
|
2023-04-03 04:06:57 -06:00
|
|
|
|
2015-08-12 04:44:09 -06:00
|
|
|
{{if .IsAttachmentEnabled}}
|
2020-10-04 23:49:33 -06:00
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
{{end}}
|