diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/editor.go | 2 | ||||
-rw-r--r-- | routers/repo/pull.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 763429f8cf..fec5728525 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -458,6 +458,8 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) { func renderUploadSettings(ctx *context.Context) { ctx.Data["RequireDropzone"] = true + ctx.Data["RequireTribute"] = true + ctx.Data["RequireSimpleMDE"] = true ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",") ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles diff --git a/routers/repo/pull.go b/routers/repo/pull.go index fdce18f7a4..c1a2a25a38 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -588,6 +588,7 @@ func ViewPullFiles(ctx *context.Context) { setPathsCompareContext(ctx, baseCommit, commit, headTarget) ctx.Data["RequireHighlightJS"] = true + ctx.Data["RequireSimpleMDE"] = true ctx.Data["RequireTribute"] = true if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil { ctx.ServerError("GetAssignees", err) |