aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/comment_tab.tmpl7
-rw-r--r--templates/repo/issue/fields/textarea.tmpl7
-rw-r--r--templates/repo/issue/milestone_new.tmpl9
-rw-r--r--templates/repo/issue/view_content.tmpl5
4 files changed, 18 insertions, 10 deletions
diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl
index 4197ea4f65..a4626dd89e 100644
--- a/templates/repo/issue/comment_tab.tmpl
+++ b/templates/repo/issue/comment_tab.tmpl
@@ -5,11 +5,12 @@
<div class="field">
{{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
+ "CustomInit" true
+ "MarkdownPreviewInRepo" $.Repository
+ "MarkdownPreviewMode" "comment"
"TextareaName" "content"
"TextareaContent" $textareaContent
- "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
+ "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
"DropzoneParentContainer" "form, .ui.form"
)}}
</div>
diff --git a/templates/repo/issue/fields/textarea.tmpl b/templates/repo/issue/fields/textarea.tmpl
index 3ad69e1220..722b67015f 100644
--- a/templates/repo/issue/fields/textarea.tmpl
+++ b/templates/repo/issue/fields/textarea.tmpl
@@ -7,11 +7,12 @@
{{if $useMarkdownEditor}}
{{template "shared/combomarkdowneditor" (dict
+ "CustomInit" true
"ContainerClasses" "tw-hidden"
- "MarkdownPreviewUrl" (print .root.RepoLink "/markup")
- "MarkdownPreviewContext" .root.RepoLink
+ "MarkdownPreviewInRepo" $.root.Repository
+ "MarkdownPreviewMode" "comment"
"TextareaContent" .item.Attributes.value
- "TextareaPlaceholder" .item.Attributes.placeholder
+ "TextareaPlaceholder" .item.Attributes.placeholder
"DropzoneParentContainer" ".combo-editor-dropzone"
)}}
diff --git a/templates/repo/issue/milestone_new.tmpl b/templates/repo/issue/milestone_new.tmpl
index 96a3879b80..4809149a21 100644
--- a/templates/repo/issue/milestone_new.tmpl
+++ b/templates/repo/issue/milestone_new.tmpl
@@ -36,9 +36,14 @@
</div>
<div class="field">
<label>{{ctx.Locale.Tr "repo.milestones.desc"}}</label>
- <textarea name="content">{{.content}}</textarea>
+ {{template "shared/combomarkdowneditor" (dict
+ "MarkdownPreviewInRepo" $.Repository
+ "MarkdownPreviewMode" "comment"
+ "TextareaName" "content"
+ "TextareaContent" .content
+ "TextareaPlaceholder" (ctx.Locale.Tr "repo.milestones.desc")
+ )}}
</div>
- <div class="divider"></div>
<div class="tw-text-right">
{{if .PageIsEditMilestone}}
<a class="ui primary basic button" href="{{.RepoLink}}/milestones">
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 3f7b2dc78f..69b5a11a14 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -142,8 +142,9 @@
<div class="ui form comment">
<div class="field">
{{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
+ "CustomInit" true
+ "MarkdownPreviewInRepo" $.Repository
+ "MarkdownPreviewMode" "comment"
"TextareaName" "content"
"DropzoneParentContainer" ".ui.form"
)}}