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/models
yp05327 cf29ee6dd2
Add missing tabs to org projects page (#22705)
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.
1 year ago
..
actions Avoid too long names for actions (#23162) 1 year ago
activities Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
admin Implement FSFE REUSE for golang files (#21840) 2 years ago
asymkey Refactor the setting to make unit test easier (#22405) 1 year ago
auth Add user webhooks (#21563) 1 year ago
avatars Avoid warning for system setting when start up (#23054) 1 year ago
db Test renderReadmeFile (#23185) 1 year ago
dbfs Refactor the setting to make unit test easier (#22405) 1 year ago
fixtures Add user webhooks (#21563) 1 year ago
git Use CleanPath instead of path.Clean (#23371) 1 year ago
issues Fix cannot reopen after pushing commits to a closed PR (#23189) 1 year ago
migrations Add user webhooks (#21563) 1 year ago
organization Add missing tabs to org projects page (#22705) 1 year ago
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
perm Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
project Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
secret Secrets storage with SecretKey encrypted (#22142) 2 years ago
system Avoid warning for system setting when start up (#23054) 1 year ago
unit Repositories: by default disable all units except code and pulls on forks (#22541) 1 year ago
unittest Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
user Add missing tabs to org projects page (#22705) 1 year ago
webhook Add user webhooks (#21563) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Refactor the setting to make unit test easier (#22405) 1 year ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Supports wildcard protected branch (#20825) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Avoid warning for system setting when start up (#23054) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Always reuse transaction (#22362) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago