diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-02-13 00:11:08 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-13 10:11:08 +0800 |
commit | 05157808deddef8ff6f7cf959cd213ccb694b6fe (patch) | |
tree | 4b055d52ab5955deaad0f4f82967d87aa146720e | |
parent | 9b4f6c1c32c416e1cca0e29991c4f2481f26939d (diff) | |
download | gitea-05157808deddef8ff6f7cf959cd213ccb694b6fe.tar.gz gitea-05157808deddef8ff6f7cf959cd213ccb694b6fe.zip |
Fix HighlightJS not working on compare diff page (#914)
-rw-r--r-- | routers/repo/commit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 37e57ac06f..7f4457c52b 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -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) } |