diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-18 18:31:54 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-18 18:31:54 -0400 |
commit | fbd252c1cf26009e8880c632c8154361db33175e (patch) | |
tree | 77fcadee5fd627a478ca5022349026196d3669c7 /routers/repo | |
parent | 58147bef20d56fd5cb8bccad08eff53cecaa2681 (diff) |
Mirror fix
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/single.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go index 0cc41b1c..d64248d9 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -182,10 +182,12 @@ func Commits(ctx *middleware.Context, params martini.Params) { ctx.Render.HTML(200, "repo/commits", ctx.Data) } -func Issues(ctx *middleware.Context) string { - return "This is issues page" +func Issues(ctx *middleware.Context) { + ctx.Data["IsRepoToolbarIssues"] = true + ctx.Render.HTML(200, "repo/issues", ctx.Data) } -func Pulls(ctx *middleware.Context) string { - return "This is pulls page" +func Pulls(ctx *middleware.Context) { + ctx.Data["IsRepoToolbarPulls"] = true + ctx.Render.HTML(200, "repo/pulls", ctx.Data) } |