githaven-fork/routers/org/org.go

37 lines
930 B
Go
Raw Normal View History

2014-06-07 05:27:24 +00:00
package org
import (
"github.com/go-martini/martini"
"github.com/gogits/gogs/modules/middleware"
)
func Organization(ctx *middleware.Context, params martini.Params) {
2014-06-23 03:40:49 +00:00
ctx.Data["Title"] = "Organization "+params["org"]
2014-06-07 05:27:24 +00:00
ctx.HTML(200, "org/org")
}
2014-06-22 08:53:46 +00:00
2014-06-23 03:40:49 +00:00
func Members(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = "Organization "+params["org"]+" Members"
ctx.HTML(200, "org/members")
2014-06-22 08:53:46 +00:00
}
2014-06-22 13:53:40 +00:00
2014-06-23 03:40:49 +00:00
func Teams(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = "Organization "+params["org"]+" Teams"
ctx.HTML(200, "org/teams")
2014-06-22 13:53:40 +00:00
}
2014-06-23 03:40:49 +00:00
func New(ctx *middleware.Context) {
ctx.Data["Title"] = "Create an Organization"
ctx.HTML(200, "org/new")
}
2014-06-23 04:08:53 +00:00
func Dashboard(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = "Dashboard"
ctx.HTML(200, "org/dashboard")
}
2014-06-23 11:11:20 +00:00
func Setting(ctx *middleware.Context, param martini.Params) {
ctx.Data["Title"] = "Setting"
ctx.HTML(200, "org/setting")
}