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}}
|
|
|
|
|
|
|
|
{{template "shared/combomarkdowneditor" (dict
|
|
|
|
"locale" $.locale
|
|
|
|
"MarkdownPreviewUrl" (print .Repository.Link "/markup")
|
|
|
|
"MarkdownPreviewContext" .RepoLink
|
|
|
|
"TextareaName" "content"
|
|
|
|
"TextareaContent" $textareaContent
|
|
|
|
"DropzoneParentContainer" "form, .ui.form"
|
|
|
|
)}}
|
|
|
|
|
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}}
|