summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-25 20:10:25 -0500
committerUnknwon <u@gogs.io>2015-11-25 20:10:25 -0500
commit2b10fdc4dcb987b347b031f460cf4f02fd48a31a (patch)
treef3f723c75684c4213a58d57a2ce0b6afdc597d25 /routers/repo/view.go
parent2f28a0310b0f391dd74bb3a2ab0ae06379a4fb1a (diff)
downloadgitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.tar.gz
gitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.zip
Wiki: UI for page new
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