aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/pull.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-05 15:53:38 +0800
committerGitHub <noreply@github.com>2022-05-05 10:53:38 +0300
commit7b089c465d9f851454be91ca209ab26782648a45 (patch)
treedee38550f07722136028d173ab8a6cdef1546b50 /routers/web/repo/pull.go
parent5a75a5463e647e6783a973650d3306978ce56c57 (diff)
downloadgitea-7b089c465d9f851454be91ca209ab26782648a45.tar.gz
gitea-7b089c465d9f851454be91ca209ab26782648a45.zip
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
Diffstat (limited to 'routers/web/repo/pull.go')
-rw-r--r--routers/web/repo/pull.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go
index 6cda560f3c..74028c316c 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -743,7 +743,6 @@ func ViewPullFiles(ctx *context.Context) {
setCompareContext(ctx, baseCommit, commit, ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
- ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireTribute"] = true
if ctx.Data["Assignees"], err = models.GetRepoAssignees(ctx.Repo.Repository); err != nil {
ctx.ServerError("GetAssignees", err)
@@ -1050,7 +1049,6 @@ func CompareAndPullRequestPost(ctx *context.Context) {
ctx.Data["IsDiffCompare"] = true
ctx.Data["IsRepoToolbarCommits"] = true
ctx.Data["RequireTribute"] = true
- ctx.Data["RequireHighlightJS"] = true
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes
ctx.Data["IsAttachmentEnabled"] = setting.Attachment.Enabled
upload.AddUploadContext(ctx, "comment")