2023-04-03 10:06:57 +00:00
|
|
|
{{$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 10:44:09 +00:00
|
|
|
{{if .IsAttachmentEnabled}}
|
2020-10-05 05:49:33 +00:00
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
2015-12-07 22:30:52 +00:00
|
|
|
{{end}}
|