Mirror updates
This commit is contained in:
parent
b31070faf5
commit
f8cfb81fb0
10 changed files with 46 additions and 47 deletions
|
@ -31,6 +31,10 @@ func Issues(ctx *middleware.Context, params martini.Params) {
|
|||
return
|
||||
}
|
||||
|
||||
if len(params["branchname"]) == 0 {
|
||||
params["branchname"] = "master"
|
||||
}
|
||||
ctx.Data["Branchname"] = params["branchname"]
|
||||
ctx.HTML(200, "repo/issues")
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,10 @@ func Branches(ctx *middleware.Context, params martini.Params) {
|
|||
ctx.Data["Username"] = params["username"]
|
||||
ctx.Data["Reponame"] = params["reponame"]
|
||||
|
||||
ctx.Data["Branchname"] = brs[0]
|
||||
if len(params["branchname"]) == 0 {
|
||||
params["branchname"] = "master"
|
||||
}
|
||||
ctx.Data["Branchname"] = params["branchname"]
|
||||
ctx.Data["Branches"] = brs
|
||||
ctx.Data["IsRepoToolbarBranches"] = true
|
||||
|
||||
|
@ -334,8 +337,13 @@ func Commits(ctx *middleware.Context, params martini.Params) {
|
|||
ctx.HTML(200, "repo/commits")
|
||||
}
|
||||
|
||||
func Pulls(ctx *middleware.Context) {
|
||||
func Pulls(ctx *middleware.Context, params martini.Params) {
|
||||
ctx.Data["IsRepoToolbarPulls"] = true
|
||||
if len(params["branchname"]) == 0 {
|
||||
params["branchname"] = "master"
|
||||
}
|
||||
|
||||
ctx.Data["Branchname"] = params["branchname"]
|
||||
ctx.HTML(200, "repo/pulls")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue