You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
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>
11 months ago
..
access_log.go Replace `interface{}` with `any` (#25686) 1 year ago
api.go Set commit id when ref used explicitly (#26447) 11 months ago
api_org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
api_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 11 months ago
captcha.go Replace `interface{}` with `any` (#25686) 1 year ago
context.go Use template context function for avatar rendering (#26385) 11 months ago
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_model.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_request.go Decouple the different contexts from each other (#24786) 1 year ago
context_response.go Start using template context function (#26254) 11 months ago
context_template.go Start using template context function (#26254) 11 months ago
context_test.go Use standard HTTP library to serve files (#24693) 1 year ago
csrf.go Refactor cookie (#24107) 1 year ago
org.go Fix display problems of members and teams unit (#26363) 11 months ago
package.go Revert package access change from #23879 (#25707) 1 year ago
pagination.go Replace `interface{}` with `any` (#25686) 1 year ago
permission.go Add context parameter to some database functions (#26055) 12 months ago
private.go Replace `interface{}` with `any` (#25686) 1 year ago
repo.go Add context parameter to some database functions (#26055) 12 months ago
response.go Refactor web package and context package (#25298) 1 year ago
utils.go Decouple the different contexts from each other (#24786) 1 year ago
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago