forked from NYANDEV/forgejo
Fix display member unit in the menu bar if there are no hidden members in public org (#27795)
Follow #26363. I missed that org templates also using `templates/user/overview/header.tmpl`. You can confirm this problem in https://gitea.com/gitea/-/projects with anonymous access. Before: (no login)  After: 
This commit is contained in:
parent
c8602a8dfa
commit
0e021cd33e
1 changed files with 6 additions and 6 deletions
|
@ -27,14 +27,14 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .ContextUser.IsOrganization}}
|
{{if .ContextUser.IsOrganization}}
|
||||||
{{if .IsOrganizationMember}}
|
{{if .NumMembers}}
|
||||||
<a class="item" href="{{$.OrgLink}}/members">
|
<a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members">
|
||||||
{{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}}
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}}
|
||||||
{{if .NumMembers}}
|
<div class="ui small label">{{.NumMembers}}</div>
|
||||||
<div class="ui small label">{{.NumMembers}}</div>
|
|
||||||
{{end}}
|
|
||||||
</a>
|
</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"}}
|
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
|
||||||
{{if .NumTeams}}
|
{{if .NumTeams}}
|
||||||
<div class="ui small label">{{.NumTeams}}</div>
|
<div class="ui small label">{{.NumTeams}}</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue