gitea/modules/context
yp05327 cf29ee6dd2
Add missing tabs to org projects page ()
Fixes https://github.com/go-gitea/gitea/issues/22676

Context Data `IsOrganizationMember` and `IsOrganizationOwner` is used to
control the visibility of `people` and `team` tab.

2871ea0809/templates/org/menu.tmpl (L19-L40)

And because of the reuse of user projects page, User Context is changed
to Organization Context. But the value of `IsOrganizationMember` and
`IsOrganizationOwner` are not being given.

I reused func `HandleOrgAssignment` to add them to the ctx, but may have
some unnecessary variables, idk whether it is ok.

I found there is a missing `PageIsViewProjects` at create project page.
..
access_log.go Render access log template as text instead of HTML ()
api.go Set `X-Gitea-Debug` header once ()
api_org.go Implement FSFE REUSE for golang files ()
api_test.go Implement FSFE REUSE for golang files ()
auth.go Implement FSFE REUSE for golang files ()
captcha.go Add new captcha: cloudflare turnstile ()
context.go Set `X-Gitea-Debug` header once ()
csrf.go Update gitea-vet to check FSFE REUSE ()
form.go Implement FSFE REUSE for golang files ()
org.go Add missing tabs to org projects page ()
package.go Rename almost all Ctx functions ()
pagination.go Implement FSFE REUSE for golang files ()
permission.go Implement FSFE REUSE for golang files ()
private.go Implement FSFE REUSE for golang files ()
repo.go Rename `repo.GetOwner` to `repo.LoadOwner` ()
response.go Implement FSFE REUSE for golang files ()
utils.go Implement FSFE REUSE for golang files ()
xsrf.go Update gitea-vet to check FSFE REUSE ()
xsrf_test.go Update gitea-vet to check FSFE REUSE ()