diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index e499bb9fe..bf4c4964f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1327,6 +1327,8 @@ teams.add_team_repository = Add Team Repository teams.remove_repo = Remove teams.add_nonexistent_repo = "The repository you're trying to add does not exist; please create it first." teams.add_duplicate_users = User is already a team member. +teams.repos.none = No repositories could be accessed by this team. +teams.members.none = No members on this team. [admin] dashboard = Dashboard diff --git a/routers/org/teams.go b/routers/org/teams.go index 1aee99fb8..80309dff4 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -228,6 +228,7 @@ func NewTeamPost(ctx *context.Context, form auth.CreateTeamForm) { func TeamMembers(ctx *context.Context) { ctx.Data["Title"] = ctx.Org.Team.Name ctx.Data["PageIsOrgTeams"] = true + ctx.Data["PageIsOrgTeamMembers"] = true if err := ctx.Org.Team.GetMembers(); err != nil { ctx.ServerError("GetMembers", err) return @@ -239,6 +240,7 @@ func TeamMembers(ctx *context.Context) { func TeamRepositories(ctx *context.Context) { ctx.Data["Title"] = ctx.Org.Team.Name ctx.Data["PageIsOrgTeams"] = true + ctx.Data["PageIsOrgTeamRepos"] = true if err := ctx.Org.Team.GetRepositories(); err != nil { ctx.ServerError("GetRepositories", err) return diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 54785b0be..7633bec82 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -6,9 +6,7 @@