gitea/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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
email_address.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
email_address_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
error.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
external_login_user.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
follow.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
follow_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
list.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
redirect.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
redirect_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
search.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting.go Fix bug on user setting (#22539) 2023-01-21 15:31:11 +01:00
setting_keys.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00