From 2b10fdc4dcb987b347b031f460cf4f02fd48a31a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 25 Nov 2015 20:10:25 -0500 Subject: Wiki: UI for page new --- routers/repo/view.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'routers/repo/view.go') diff --git a/routers/repo/view.go b/routers/repo/view.go index c057140c..877ff4cb 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 -- cgit v1.2.3