org projects page menu is incorrect and have different style of header's background color and url #10185

Closed
opened 2025-11-02 09:00:30 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @yp05327 on GitHub (Jan 31, 2023).

Description

org projects page menu is incorrect:

  1. build the last version and run gitea server
  2. after the init proccess, create a new org
  3. access projects , people and team tab is missing

org projects

the right one
org packages

different style of header's background color and url:

Page Style Url
projects template/user/overview/header.tmpl orgname/-/projects
package template/user/overview/header.tmpl orgname/-/packages
people template/org/header.tmpl org/orgname/members
team template/org/header.tmpl org/orgname/teams

org people
org teams

Gitea Version

4011821c94

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build in local

Database

None

Originally created by @yp05327 on GitHub (Jan 31, 2023). ### Description org projects page menu is incorrect: 1. build the last version and run gitea server 2. after the init proccess, create a new org 3. access `projects` , `people` and `team` tab is missing ![org projects](https://user-images.githubusercontent.com/18380374/215672154-dac9aa9a-469e-456f-8942-3c1b4e9603cd.PNG) the right one ![org packages](https://user-images.githubusercontent.com/18380374/215672138-abb27998-8225-40c8-80db-b2f3e34027bb.PNG) different style of header's background color and url: | Page | Style | Url | | ---- | ---- | ---- | | projects | template/user/overview/header.tmpl | orgname/-/projects | | package | template/user/overview/header.tmpl | orgname/-/packages | | people | template/org/header.tmpl | org/orgname/members | | team | template/org/header.tmpl | org/orgname/teams | ![org people](https://user-images.githubusercontent.com/18380374/215672149-26df773b-7e68-40ea-8694-8835d47d37eb.PNG) ![org teams](https://user-images.githubusercontent.com/18380374/215672156-91e92fa1-2f59-405c-ab78-a904ee679494.PNG) ### Gitea Version 4011821c946e8db032be86266dd9364ccb204118 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? build in local ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:00:30 -06:00
Author
Owner

@yp05327 commented on GitHub (Jan 31, 2023):

IsOrganizationMember and IsOrganizationOwner is not defined in the projects page rendering function.
Then {{if .IsOrganizationMember}} and {{if .IsOrganizationOwner}} will always return false, and will not render People and Teams

I'm trying to fix this.

@yp05327 commented on GitHub (Jan 31, 2023): `IsOrganizationMember` and `IsOrganizationOwner` is not defined in the projects page rendering function. Then `{{if .IsOrganizationMember}}` and `{{if .IsOrganizationOwner}}` will always return false, and will not render `People` and `Teams` I'm trying to fix this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10185