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