forgejo/models/user
Giteabot e259daeff8
Add missing tabs to org projects page (#22705) (#23412)
Backport #22705 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>
2023-03-10 10:08:28 -06:00
..
avatar.go Avoid warning for system setting when start up (#23054) (#23116) 2023-02-24 16:46:11 -05:00
badge.go
email_address.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
email_address_test.go
error.go
external_login_user.go
follow.go
follow_test.go
list.go
main_test.go
must_change_password.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
openid.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
openid_test.go
redirect.go
redirect_test.go
search.go
setting.go Fix bug on user setting (#22539) 2023-01-21 15:31:11 +01:00
setting_keys.go
setting_test.go
user.go Add missing tabs to org projects page (#22705) (#23412) 2023-03-10 10:08:28 -06:00
user_system.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user_test.go Provide the ability to set password hash algorithm parameters (#22942) 2023-02-19 15:35:20 +08:00
user_update.go