diff options
author | Unknwon <u@gogs.io> | 2015-11-24 19:14:00 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-24 19:14:00 -0500 |
commit | 3ca544912fe84f5a3202855037a110af40809d43 (patch) | |
tree | 545d50b94b764380919b3408e7acef1b2105039d /routers/org/org.go | |
parent | 7f9598141bd7b0200d9342f01243228eab3061ba (diff) | |
download | gitea-3ca544912fe84f5a3202855037a110af40809d43.tar.gz gitea-3ca544912fe84f5a3202855037a110af40809d43.zip |
#1944 Drop /org/ URL path prefix in organization home page
Diffstat (limited to 'routers/org/org.go')
-rw-r--r-- | routers/org/org.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/routers/org/org.go b/routers/org/org.go index d1c1940cb9..dff11be47f 100644 --- a/routers/org/org.go +++ b/routers/org/org.go @@ -14,36 +14,9 @@ import ( ) const ( - HOME base.TplName = "org/home" CREATE base.TplName = "org/create" ) -func Home(ctx *middleware.Context) { - org := ctx.Org.Organization - ctx.Data["Title"] = org.FullName - - repos, err := models.GetRepositories(org.Id, ctx.IsSigned && org.IsOrgMember(ctx.User.Id)) - if err != nil { - ctx.Handle(500, "GetRepositories", err) - return - } - ctx.Data["Repos"] = repos - - if err = org.GetMembers(); err != nil { - ctx.Handle(500, "GetMembers", err) - return - } - ctx.Data["Members"] = org.Members - - if err = org.GetTeams(); err != nil { - ctx.Handle(500, "GetTeams", err) - return - } - ctx.Data["Teams"] = org.Teams - - ctx.HTML(200, HOME) -} - func Create(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("new_org") ctx.HTML(200, CREATE) |