1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-07 18:54:25 +00:00
gitea/routers
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.
2023-03-10 09:18:20 -06:00
..
api Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
common Support sanitising the URL by removing extra slashes in the URL (#21333) 2023-03-04 21:31:24 +08:00
install Set X-Gitea-Debug header once (#23361) 2023-03-08 15:40:04 -05:00
private Use context parameter in services/repository (#23186) 2023-02-28 16:17:51 -06:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Add missing tabs to org projects page (#22705) 2023-03-10 09:18:20 -06:00
init.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00