1
0
Fork 0
forked from forgejo/forgejo

Wiki: UI for page new

This commit is contained in:
Unknwon 2015-11-25 20:10:25 -05:00
parent 2f28a0310b
commit 2b10fdc4dc
20 changed files with 307 additions and 49 deletions

View file

@ -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