diff options
author | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-27 21:33:49 +0800 |
---|---|---|
committer | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-27 21:33:49 +0800 |
commit | b5ba2bd268b144ae0c878fe17257d8685d92f9cc (patch) | |
tree | cce0b7d9d21df81fa7c7bb4783c4db7c5745de0f /routers/org | |
parent | 19e910428951135b9a341554dad54a6546d2ad50 (diff) | |
download | gitea-b5ba2bd268b144ae0c878fe17257d8685d92f9cc.tar.gz gitea-b5ba2bd268b144ae0c878fe17257d8685d92f9cc.zip |
add organization team-create page
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/org.go | 4 | ||||
-rw-r--r-- | routers/org/teams.go | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/routers/org/org.go b/routers/org/org.go index 4f57b9a963..c036a8e5dc 100644 --- a/routers/org/org.go +++ b/routers/org/org.go @@ -30,10 +30,6 @@ func Members(ctx *middleware.Context, params martini.Params) { ctx.HTML(200, "org/members") } -func Teams(ctx *middleware.Context, params martini.Params) { - ctx.Data["Title"] = "Organization " + params["org"] + " Teams" - ctx.HTML(200, "org/teams") -} func New(ctx *middleware.Context) { ctx.Data["Title"] = "Create An Organization" diff --git a/routers/org/teams.go b/routers/org/teams.go new file mode 100644 index 0000000000..9585cb272e --- /dev/null +++ b/routers/org/teams.go @@ -0,0 +1,16 @@ +package org + +import ( + "github.com/go-martini/martini" + "github.com/gogits/gogs/modules/middleware" +) + +func Teams(ctx *middleware.Context, params martini.Params) { + ctx.Data["Title"] = "Organization "+params["org"]+" Teams" + ctx.HTML(200, "org/teams") +} + +func NewTeam(ctx *middleware.Context, params martini.Params) { + ctx.Data["Title"] = "Organization "+params["org"]+" New Team" + ctx.HTML(200, "org/new_team") +} |