diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-24 21:09:05 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-24 21:09:05 +0800 |
commit | 21a1b8e5a35c61bff30145ac3194ea893a9c6b68 (patch) | |
tree | b218aedd0d64252d95725f12338a1ced1f155ba9 /cmd/web.go | |
parent | e325c8499a102ba8a6a84236c02dd7951f46cec5 (diff) | |
download | gitea-21a1b8e5a35c61bff30145ac3194ea893a9c6b68.tar.gz gitea-21a1b8e5a35c61bff30145ac3194ea893a9c6b68.zip |
Finish new edit team page, add member to team
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 064a0358f9..0b3b84ab6a 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -48,7 +48,7 @@ and it takes care of all the other things for you`, Flags: []cli.Flag{}, } -// checkVersion checks if binary matches the version of temolate files. +// checkVersion checks if binary matches the version of templates files. func checkVersion() { data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION")) if err != nil { @@ -235,7 +235,7 @@ func runWeb(*cli.Context) { r.Get("/members/action/:action", org.MembersAction) r.Get("/teams", org.Teams) - r.Get("/teams/:team", org.SingleTeam) + r.Get("/teams/:team", org.TeamMembers) r.Get("/teams/:team/action/:action", org.TeamsAction) }, middleware.OrgAssignment(true, true)) @@ -243,6 +243,8 @@ func runWeb(*cli.Context) { r.Get("/teams/new", org.NewTeam) r.Post("/teams/new", bindIgnErr(auth.CreateTeamForm{}), org.NewTeamPost) r.Get("/teams/:team/edit", org.EditTeam) + r.Post("/teams/:team/edit", bindIgnErr(auth.CreateTeamForm{}), org.EditTeamPost) + r.Post("/teams/:team/delete", org.DeleteTeam) m.Group("/settings", func(r *macaron.Router) { r.Get("", org.Settings) |