summaryrefslogtreecommitdiffstats
path: root/routers/repo/compare.go
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-12-16 13:57:30 -0600
committertechknowlogick <techknowlogick@gitea.io>2019-12-16 14:57:30 -0500
commit1bbb2a637cf49f14b46bb4d869ef568c4ce6cae7 (patch)
tree5c5b559e2ef3a24cf85e3815cf9dd5e187fd8fe1 /routers/repo/compare.go
parent4714fa6642eb50227a20314532ee4a8741b4c32b (diff)
downloadgitea-1bbb2a637cf49f14b46bb4d869ef568c4ce6cae7.tar.gz
gitea-1bbb2a637cf49f14b46bb4d869ef568c4ce6cae7.zip
Add SimpleMDE to compare page for PRs (#9376)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/repo/compare.go')
-rw-r--r--routers/repo/compare.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/compare.go b/routers/repo/compare.go
index 203b740082..d23bccd09a 100644
--- a/routers/repo/compare.go
+++ b/routers/repo/compare.go
@@ -433,6 +433,7 @@ func CompareDiff(ctx *context.Context) {
ctx.Data["IsDiffCompare"] = true
ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireTribute"] = true
+ ctx.Data["RequireSimpleMDE"] = true
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes
setTemplateIfExists(ctx, pullRequestTemplateKey, pullRequestTemplateCandidates)
renderAttachmentSettings(ctx)