Skip to content

Commit 87ceecf

Browse files
lunnyyp05327
andauthored
Fix the missing menu in organization project view page (#32313) (#32592)
Backport #32313 #29248 didn't modify the view page. The class name is not good enough, so this is a quick fix. Before: org: ![image](https://github.com/user-attachments/assets/3e26502d-66b4-4043-ab03-003ba7391487) user: ![image](https://github.com/user-attachments/assets/9b22b90c-d63c-4228-acad-4d9fb20590ac) After: org: ![image](https://github.com/user-attachments/assets/21bf98a7-8a5b-4dc6-950a-88f529e36450) user: (no change) ![image](https://github.com/user-attachments/assets/fea0dcae-3625-44e8-bb9e-4c3733da8764) Co-authored-by: yp05327 <[email protected]>
1 parent c2598b4 commit 87ceecf

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

templates/org/projects/view.tmpl

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
3-
{{template "shared/user/org_profile_avatar" .}}
4-
<div class="ui container tw-mb-4">
5-
{{template "user/overview/header" .}}
6-
</div>
2+
<div role="main" aria-label="{{.Title}}" class="page-content organization repository projects view-project">
3+
{{if .ContextUser.IsOrganization}}
4+
{{template "org/header" .}}
5+
{{else}}
6+
{{template "shared/user/org_profile_avatar" .}}
7+
<div class="ui container tw-mb-4">
8+
{{template "user/overview/header" .}}
9+
</div>
10+
{{end}}
711
<div class="ui container fluid padded">
812
{{template "projects/view" .}}
913
</div>

0 commit comments

Comments
 (0)