summaryrefslogtreecommitdiffstats
path: root/routers/org/org.go
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-06-23 11:40:49 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-06-23 11:40:49 +0800
commitea507e20d45ef90b1552d72341038354f8801cf4 (patch)
tree65ef0b0b0866bf5aa4717fe2b6c2f6739f4a5e2c /routers/org/org.go
parent314193029a246c2498c6d54c085d57f7589c8dbe (diff)
downloadgitea-ea507e20d45ef90b1552d72341038354f8801cf4.tar.gz
gitea-ea507e20d45ef90b1552d72341038354f8801cf4.zip
add organization create page
Diffstat (limited to 'routers/org/org.go')
-rw-r--r--routers/org/org.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 21f2a189cf..4d9b831deb 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -6,17 +6,21 @@ import (
)
func Organization(ctx *middleware.Context, params martini.Params) {
- ctx.Data["Title"] = "Organization " + params["org"]
+ ctx.Data["Title"] = "Organization "+params["org"]
ctx.HTML(200, "org/org")
}
-func Members(ctx *middleware.Context,params martini.Params){
- ctx.Data["Title"] = "Organization " + params["org"]+" Members"
- ctx.HTML(200,"org/members")
+func Members(ctx *middleware.Context, params martini.Params) {
+ ctx.Data["Title"] = "Organization "+params["org"]+" Members"
+ 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 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"
+ ctx.HTML(200, "org/new")
+}