2023-04-03 05:06:57 -05:00
|
|
|
{{$textareaContent := .BodyQuery}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}}
|
|
|
|
{{if not $textareaContent}}{{$textareaContent = .content}}{{end}}
|
|
|
|
|
2023-04-07 12:03:29 -05:00
|
|
|
<div class="field">
|
|
|
|
{{template "shared/combomarkdowneditor" (dict
|
|
|
|
"MarkdownPreviewUrl" (print .Repository.Link "/markup")
|
|
|
|
"MarkdownPreviewContext" .RepoLink
|
|
|
|
"TextareaName" "content"
|
|
|
|
"TextareaContent" $textareaContent
|
2023-09-25 03:56:50 -05:00
|
|
|
"TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
|
2023-04-07 12:03:29 -05:00
|
|
|
"DropzoneParentContainer" "form, .ui.form"
|
|
|
|
)}}
|
|
|
|
</div>
|
2023-04-03 05:06:57 -05:00
|
|
|
|
2015-08-12 05:44:09 -05:00
|
|
|
{{if .IsAttachmentEnabled}}
|
2020-10-05 00:49:33 -05:00
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
2015-12-07 16:30:52 -06:00
|
|
|
{{end}}
|