aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index c057140c17..877ff4cba0 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -29,6 +29,7 @@ const (
func Home(ctx *middleware.Context) {
ctx.Data["Title"] = ctx.Repo.Repository.Name
+ ctx.Data["PageIsViewCode"] = true
ctx.Data["RequireHighlightJS"] = true
branchName := ctx.Repo.BranchName
@@ -52,8 +53,6 @@ func Home(ctx *middleware.Context) {
treeLink += "/" + treename
}
- ctx.Data["IsRepoToolbarSource"] = true
-
isViewBranch := ctx.Repo.IsBranch
ctx.Data["IsViewBranch"] = isViewBranch