summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 20:12:31 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 20:12:31 +0800
commitcb80111e8923ff9317199dca61509e32408279ca (patch)
treeb045fe483a506736a791a5a2e6541e740f7da7bb /routers
parent4cf6cc63b0679aaf5fe8b74a2aaf0bd92b1f12d3 (diff)
downloadgitea-cb80111e8923ff9317199dca61509e32408279ca.tar.gz
gitea-cb80111e8923ff9317199dca61509e32408279ca.zip
guide page for bare repo
some ui fix
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/single.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go
index ebf64dc665..4a6af9ff50 100644
--- a/routers/repo/single.go
+++ b/routers/repo/single.go
@@ -59,6 +59,8 @@ func Single(ctx *middleware.Context, params martini.Params) {
return
}
+ ctx.Data["IsRepoToolbarSource"] = true
+
// Branches.
brs, err := models.GetBranches(params["username"], params["reponame"])
if err != nil {
@@ -176,7 +178,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
ctx.Data["Paths"] = Paths
ctx.Data["Treenames"] = treenames
- ctx.Data["IsRepoToolbarSource"] = true
ctx.Data["BranchLink"] = branchLink
ctx.HTML(200, "repo/single")
}
@@ -187,6 +188,8 @@ func Setting(ctx *middleware.Context, params martini.Params) {
return
}
+ ctx.Data["IsRepoToolbarSetting"] = true
+
// Branches.
brs, err := models.GetBranches(params["username"], params["reponame"])
if err != nil {
@@ -205,7 +208,6 @@ func Setting(ctx *middleware.Context, params martini.Params) {
}
ctx.Data["Title"] = title + " - settings"
- ctx.Data["IsRepoToolbarSetting"] = true
ctx.HTML(200, "repo/setting")
}