gitea/models/user
Giteabot e259daeff8
Add missing tabs to org projects page () ()
Backport  by @yp05327

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.

Co-authored-by: yp05327 <576951401@qq.com>
..
avatar.go Avoid warning for system setting when start up () ()
badge.go Implement FSFE REUSE for golang files ()
email_address.go Use ErrInvalidArgument in packages ()
email_address_test.go refactor some functions to support ctx as first parameter ()
error.go Implement FSFE REUSE for golang files ()
external_login_user.go Implement FSFE REUSE for golang files ()
follow.go Implement FSFE REUSE for golang files ()
follow_test.go Implement FSFE REUSE for golang files ()
list.go Implement FSFE REUSE for golang files ()
main_test.go Implement FSFE REUSE for golang files ()
must_change_password.go Add command to bulk set must-change-password ()
openid.go Use ErrInvalidArgument in packages ()
openid_test.go Implement FSFE REUSE for golang files ()
redirect.go Implement FSFE REUSE for golang files ()
redirect_test.go Implement FSFE REUSE for golang files ()
search.go Implement FSFE REUSE for golang files ()
setting.go Fix bug on user setting ()
setting_keys.go Implement FSFE REUSE for golang files ()
setting_test.go Implement FSFE REUSE for golang files ()
user.go Add missing tabs to org projects page () ()
user_system.go Implement actions ()
user_test.go Provide the ability to set password hash algorithm parameters ()
user_update.go Implement FSFE REUSE for golang files ()