diff options
Diffstat (limited to 'templates/user/overview')
-rw-r--r-- | templates/user/overview/header.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/user/overview/header.tmpl b/templates/user/overview/header.tmpl index 69a4e9a856..9b6458474e 100644 --- a/templates/user/overview/header.tmpl +++ b/templates/user/overview/header.tmpl @@ -27,14 +27,14 @@ {{end}} {{if .ContextUser.IsOrganization}} - {{if .IsOrganizationMember}} - <a class="item" href="{{$.OrgLink}}/members"> + {{if .NumMembers}} + <a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members"> {{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}} - {{if .NumMembers}} - <div class="ui small label">{{.NumMembers}}</div> - {{end}} + <div class="ui small label">{{.NumMembers}}</div> </a> - <a class="item" href="{{$.OrgLink}}/teams"> + {{end}} + {{if .IsOrganizationMember}} + <a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams"> {{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}} {{if .NumTeams}} <div class="ui small label">{{.NumTeams}}</div> |