diff options
author | Giteabot <teabot@gitea.io> | 2023-03-06 14:48:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 13:48:04 -0600 |
commit | 2f7bbdf8c9cd8c36bfbb39b7cd477d4be09926ba (patch) | |
tree | eb9e27f7c044e76e8ff10b6c666fa1b999c75fec /templates/user | |
parent | af4767df5c061a21a68b442e223446303b5d77de (diff) | |
download | gitea-2f7bbdf8c9cd8c36bfbb39b7cd477d4be09926ba.tar.gz gitea-2f7bbdf8c9cd8c36bfbb39b7cd477d4be09926ba.zip |
Fix incorrect project links and use symlink icon for org-wide projects (#23325) (#23336)
Backport #23325
Fix displaying same projects icons between user/repo projects.
And fix incorrect projects links.
A part of https://github.com/go-gitea/gitea/pull/22865.
![image](https://user-images.githubusercontent.com/18380374/223044279-7b620ff1-d88a-4146-97e6-531bbf269761.png)
![image](https://user-images.githubusercontent.com/18380374/223044390-42911e3f-1f6b-439f-8441-4f3ebf99ea13.png)
![image](https://user-images.githubusercontent.com/18380374/223044437-5cad5391-0f95-4c8b-b0a3-32e263e2854f.png)
Co-authored-by: yp05327 <576951401@qq.com>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/overview/header.tmpl | 2 | ||||
-rw-r--r-- | templates/user/profile.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/overview/header.tmpl b/templates/user/overview/header.tmpl index 2449f5fc32..ce9ecb46ad 100644 --- a/templates/user/overview/header.tmpl +++ b/templates/user/overview/header.tmpl @@ -23,7 +23,7 @@ {{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}} </a> <a href="{{.ContextUser.HomeLink}}/-/projects" class="{{if .PageIsViewProjects}}active {{end}}item"> - {{svg "octicon-project"}} {{.locale.Tr "user.projects"}} + {{svg "octicon-project-symlink"}} {{.locale.Tr "user.projects"}} </a> {{if (not .UnitPackagesGlobalDisabled)}} <a href="{{.ContextUser.HomeLink}}/-/packages" class="{{if .IsPackagesPage}}active {{end}}item"> diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index fcaec60eae..5b445bdb00 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -107,7 +107,7 @@ {{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}} </a> <a href="{{.Owner.HomeLink}}/-/projects" class="{{if eq .TabName "projects"}}active {{end}}item"> - {{svg "octicon-project"}} {{.locale.Tr "user.projects"}} + {{svg "octicon-project-symlink"}} {{.locale.Tr "user.projects"}} </a> {{if .IsPackageEnabled}} <a class='{{if eq .TabName "packages"}}active {{end}}item' href="{{.Owner.HomeLink}}/-/packages"> |