0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 09:24:07 -05:00
forgejo/templates
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
..
admin Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) (#23403) 2023-03-10 08:29:28 -06:00
api/packages/pypi
base Fix various bugs for "install" page (#23194) (#23286) 2023-03-05 11:59:58 +01:00
code Remove Fomantic-UI's .hidden CSS class for menu elements (#22895) 2023-02-14 19:53:54 +08:00
custom
explore Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
mail Revert relative links to absolute links in mail templates (#23267) (#23269) 2023-03-03 17:41:00 +00:00
org Add missing tabs to org projects page (#22705) (#23412) 2023-03-10 10:08:28 -06:00
package Fix nil context in RenderMarkdownToHtml (#23092) (#23108) 2023-02-24 21:17:03 +08:00
projects Pass context to avatar for projects view (#23359) (#23378) 2023-03-08 11:57:09 -06:00
repo Fix incorrect display for comment context menu (#23343) (#23344) 2023-03-08 23:18:53 +08:00
shared Fix incorrect project links and use symlink icon for org-wide projects (#23325) (#23336) 2023-03-06 13:48:04 -06:00
status Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
swagger Add scopes to API to create token and display them (#22989) 2023-02-20 15:28:44 -06:00
user Add missing tabs to org projects page (#22705) (#23412) 2023-03-10 10:08:28 -06:00
home.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
install.tmpl Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950) 2023-02-19 12:06:14 +08:00
post-install.tmpl Fix various bugs for "install" page (#23194) (#23286) 2023-03-05 11:59:58 +01:00