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