summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-12-09 07:42:11 +0100
committerLauris BH <lauris@nix.lv>2018-12-09 07:42:11 +0100
commit7c0c9655325b5413a8bb25bbc5b668d87582e8c8 (patch)
tree13e321d12adc98cb824f07fdfc1e22841cf6d00d /routers/org
parentadd tests for api user orgs (#5494) (diff)
downloadforgejo-7c0c9655325b5413a8bb25bbc5b668d87582e8c8.tar.xz
forgejo-7c0c9655325b5413a8bb25bbc5b668d87582e8c8.zip
Improve team members and repositories settings UI (#5457)
* improve team members and repositories settings UI * use tab on team pages * add default description on team members and repos * add blank on numbers and texts * improve translation
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/teams.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go
index 1aee99fb88..80309dff44 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