Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing tabs to org projects page (#22705) #23412

Merged
merged 1 commit into from
Mar 10, 2023

Commits on Mar 10, 2023

  1. Add missing tabs to org projects page (go-gitea#22705)

    Fixes go-gitea#22676
    
    Context Data `IsOrganizationMember` and `IsOrganizationOwner` is used to
    control the visibility of `people` and `team` tab.
    
    https://github.com/go-gitea/gitea/blob/2871ea08096cba15546f357d0ec473734ee9d8be/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.
    yp05327 authored and GiteaBot committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    b1f9193 View commit details
    Browse the repository at this point in the history