diff options
author | Unknwon <u@gogs.io> | 2016-02-07 11:49:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-07 11:49:11 -0500 |
commit | f15a2f9b25bbec130915fec5b33c7e49dc7cf57d (patch) | |
tree | 1ba3aa079c4f931a6fef87693cf83e731a323bcc /routers/repo/commit.go | |
parent | 3b102a71a2cef4a3cdb748bbc6e0499fdec5e3b4 (diff) | |
parent | 2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (diff) | |
download | gitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.tar.gz gitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.zip |
Merge pull request #2528 from andreynering/diff-sintax-highlight-733
Enable syntax highlighting on diff view
Diffstat (limited to 'routers/repo/commit.go')
-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 c3fc4d177a..781c3da946 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -183,6 +183,7 @@ func Diff(ctx *middleware.Context) { ctx.Data["BeforeSourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", parents[0]) } ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", commitID) + ctx.Data["RequireHighlightJS"] = true ctx.HTML(200, DIFF) } |