summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-10 20:11:18 -0700
committerUnknwon <joe2010xtmf@163.com>2014-08-10 20:11:18 -0700
commit5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a (patch)
tree8c657d037a5c87ec13cc828244ae30d3fe1168ab /routers/org
parent7af7584d25f48309a70083c30805ebb8454611f0 (diff)
downloadgitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.tar.gz
gitea-5fbf8531e6a2b74ebc9dd2a5967e82a8c9216c7a.zip
Finish new home page of organization
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/org.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 9b8a13e614..fed1fd5fbc 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -19,34 +19,33 @@ const (
)
func Home(ctx *middleware.Context) {
- ctx.Data["Title"] = "Organization " + ctx.Params(":org")
+ ctx.Data["Title"] = ctx.Params(":org")
org, err := models.GetUserByName(ctx.Params(":org"))
if err != nil {
if err == models.ErrUserNotExist {
- ctx.Handle(404, "org.Home(GetUserByName)", err)
+ ctx.Handle(404, "GetUserByName", err)
} else {
- ctx.Handle(500, "org.Home(GetUserByName)", err)
+ ctx.Handle(500, "GetUserByName", err)
}
return
}
ctx.Data["Org"] = org
- ctx.Data["Repos"], err = models.GetRepositories(org.Id,
- ctx.IsSigned && org.IsOrgMember(ctx.User.Id))
+ ctx.Data["Repos"], err = models.GetRepositories(org.Id, ctx.IsSigned && org.IsOrgMember(ctx.User.Id))
if err != nil {
- ctx.Handle(500, "org.Home(GetRepositories)", err)
+ ctx.Handle(500, "GetRepositories", err)
return
}
if err = org.GetMembers(); err != nil {
- ctx.Handle(500, "org.Home(GetMembers)", err)
+ ctx.Handle(500, "GetMembers", err)
return
}
ctx.Data["Members"] = org.Members
if err = org.GetTeams(); err != nil {
- ctx.Handle(500, "org.Home(GetTeams)", err)
+ ctx.Handle(500, "GetTeams", err)
return
}
ctx.Data["Teams"] = org.Teams