summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/org/org.go4
-rw-r--r--routers/org/teams.go16
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")
+}