aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 13:14:56 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 13:14:56 -0400
commit757f360949989214a9161f17a82aedf2b647457a (patch)
tree173e02a4f31ea9ebefe653d3b5e54d25d2dee585 /routers
parent04b0ba6852c7cc5b5512e9005db304c9bdacc045 (diff)
downloadgitea-757f360949989214a9161f17a82aedf2b647457a.tar.gz
gitea-757f360949989214a9161f17a82aedf2b647457a.zip
Render data in commit list page
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/repo.go6
-rw-r--r--routers/repo/single.go2
2 files changed, 5 insertions, 3 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index fb54d4ef8b..b38473b18a 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -13,11 +13,11 @@ import (
func Create(ctx *middleware.Context, form auth.CreateRepoForm) {
ctx.Data["Title"] = "Create repository"
+ ctx.Data["PageIsNewRepo"] = true // For navbar arrow.
+ ctx.Data["LanguageIgns"] = models.LanguageIgns
+ ctx.Data["Licenses"] = models.Licenses
if ctx.Req.Method == "GET" {
- ctx.Data["PageIsNewRepo"] = true // For navbar arrow.
- ctx.Data["LanguageIgns"] = models.LanguageIgns
- ctx.Data["Licenses"] = models.Licenses
ctx.HTML(200, "repo/create", ctx.Data)
return
}
diff --git a/routers/repo/single.go b/routers/repo/single.go
index 0bfc8ffb24..285c5277af 100644
--- a/routers/repo/single.go
+++ b/routers/repo/single.go
@@ -186,6 +186,8 @@ func Commits(ctx *middleware.Context, params martini.Params) {
ctx.Error(404)
return
}
+ ctx.Data["Username"] = params["username"]
+ ctx.Data["Reponame"] = params["reponame"]
ctx.Data["Commits"] = commits
ctx.HTML(200, "repo/commits", ctx.Data)
}