summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/comment_tab.tmpl
blob: 4197ea4f657f79ad24e3b771578e55f8f9077cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{$textareaContent := .BodyQuery}}
{{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}}
{{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}}
{{if not $textareaContent}}{{$textareaContent = .content}}{{end}}

<div class="field">
	{{template "shared/combomarkdowneditor" (dict
		"MarkdownPreviewUrl" (print .Repository.Link "/markup")
		"MarkdownPreviewContext" .RepoLink
		"TextareaName" "content"
		"TextareaContent" $textareaContent
		"TextareaPlaceholder"  (ctx.Locale.Tr "repo.diff.comment.placeholder")
		"DropzoneParentContainer" "form, .ui.form"
	)}}
</div>

{{if .IsAttachmentEnabled}}
	<div class="field">
		{{template "repo/upload" .}}
	</div>
{{end}}