Browse Source

Fix commit page js error (1.11 backport) (#11527)

Partial backport of fd094eea95 to 1.11.

Fixes: https://github.com/go-gitea/gitea/issues/11518
tags/v1.11.6
silverwind 5 years ago committed by GitHub
parent
commit
b52e8de7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/repo/commit.go

2
routers/repo/commit.go

@ -201,6 +201,8 @@ func FileHistory(ctx *context.Context) {
func Diff(ctx *context.Context) {
ctx.Data["PageIsDiff"] = true
ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireSimpleMDE"] = true
ctx.Data["RequireTribute"] = true
userName := ctx.Repo.Owner.Name
repoName := ctx.Repo.Repository.Name

Loading…
Cancel
Save