aboutsummaryrefslogtreecommitdiffstats
path: root/routers/org/teams.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-23 20:24:02 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-23 20:24:02 +0800
commitfa60502a70de62bb83c2ba083de923d5d08bdbf9 (patch)
treea89580ba336b2e57e30236bab9eb0064c49f35bb /routers/org/teams.go
parenta60edbe88c62f6f5b8c1d74fdd295a2492ef30e9 (diff)
downloadgitea-fa60502a70de62bb83c2ba083de923d5d08bdbf9.tar.gz
gitea-fa60502a70de62bb83c2ba083de923d5d08bdbf9.zip
Working on organization pages
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r--routers/org/teams.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go
index d082576cc8..8eb86c49fd 100644
--- a/routers/org/teams.go
+++ b/routers/org/teams.go
@@ -13,8 +13,9 @@ import (
)
const (
- TEAMS base.TplName = "org/team/teams"
- TEAM_NEW base.TplName = "org/team/new"
+ TEAMS base.TplName = "org/team/teams"
+ TEAM_NEW base.TplName = "org/team/new"
+ TEAM_MEMBERS base.TplName = "org/team/members"
)
func Teams(ctx *middleware.Context) {
@@ -121,6 +122,7 @@ func EditTeam(ctx *middleware.Context) {
}
func SingleTeam(ctx *middleware.Context) {
- ctx.Data["Title"] = "single-team" + ctx.Params(":org")
- ctx.HTML(200, "org/team")
+ ctx.Data["Title"] = ctx.Org.Team.Name
+ ctx.Data["PageIsOrgTeams"] = true
+ ctx.HTML(200, TEAM_MEMBERS)
}