gitea/routers/web/org
yp05327 7f8028e5a1
Fix display problems of members and teams unit (#26363)
Fix:
- display member count and team count in the menu bar

![image](https://github.com/go-gitea/gitea/assets/18380374/7f03ced4-67e2-41ce-b19f-a992823726bb)
- Also display member unit in the menu bar if there are no hidden
members in public org

![image](https://github.com/go-gitea/gitea/assets/18380374/31422ad6-7190-438d-8e99-8a4af9cce908)
- hidden member board when there's no seeable members.
In this org, we only have hidden members: 

![image](https://github.com/go-gitea/gitea/assets/18380374/d749420b-554a-4483-8cd2-221df61b5ca7)
We will hidden the member board when doer is not the member of this org

![image](https://github.com/go-gitea/gitea/assets/18380374/93bb782e-7d4d-4ad3-a096-133afbc51f8a)
Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/eafc0b3e-6218-42ab-a892-39645d08a5eb)
If you click the number in the members board, you will access the
members page, which is not expected.

![image](https://github.com/go-gitea/gitea/assets/18380374/73d6dadc-0ef2-4ca9-8485-c5f4211bffb2)

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-08-15 16:00:35 +02:00
..
setting Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
home.go Fix display problems of members and teams unit (#26363) 2023-08-15 16:00:35 +02:00
main_test.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
members.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
org.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
org_labels.go Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00
projects.go Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
projects_test.go Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
setting.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
setting_oauth2.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting_packages.go Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
teams.go Fix 404 error when remove self from an organization (#26362) 2023-08-12 07:02:22 +00:00