diff options
author | Unknwon <u@gogs.io> | 2016-08-16 07:31:54 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-16 07:31:54 -0700 |
commit | 6cda35a75f346374121c1ba0ab08adf81dfdcead (patch) | |
tree | 48875fa5a51a362d32b667f96f4798bf8a2d663c /routers | |
parent | 2625193a4820a89355ca1b8b7c910f0f4243baab (diff) | |
download | gitea-6cda35a75f346374121c1ba0ab08adf81dfdcead.tar.gz gitea-6cda35a75f346374121c1ba0ab08adf81dfdcead.zip |
#3464 reproduce diff signs
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 0dc0ceba55..9cf339ecea 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -145,6 +145,7 @@ func FileHistory(ctx *context.Context) { func Diff(ctx *context.Context) { ctx.Data["PageIsDiff"] = true + ctx.Data["RequireHighlightJS"] = true userName := ctx.Repo.Owner.Name repoName := ctx.Repo.Repository.Name @@ -201,7 +202,6 @@ func Diff(ctx *context.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) } |