Browse Source

Fix HighlightJS not working on compare diff page (#914)

tags/v1.21.12.1
Andrey Nering Lunny Xiao 8 years ago
parent
commit
05157808de
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/commit.go

+ 1
- 0
routers/repo/commit.go View File

@@ -292,5 +292,6 @@ func CompareDiff(ctx *context.Context) {
ctx.Data["SourcePath"] = setting.AppSubURL + "/" + path.Join(userName, repoName, "src", afterCommitID)
ctx.Data["BeforeSourcePath"] = setting.AppSubURL + "/" + path.Join(userName, repoName, "src", beforeCommitID)
ctx.Data["RawPath"] = setting.AppSubURL + "/" + path.Join(userName, repoName, "raw", afterCommitID)
ctx.Data["RequireHighlightJS"] = true
ctx.HTML(200, tplDiff)
}

Loading…
Cancel
Save