mirror of
https://github.com/go-gitea/gitea
synced 2025-08-10 19:48:19 +00:00
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.    Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
@@ -87,8 +87,8 @@
|
||||
</a>
|
||||
{{end}}
|
||||
{{if .Project}}
|
||||
<a class="project" {{if $.RepoLink}}href="{{$.RepoLink}}/projects/{{.Project.ID}}"{{else}}href="{{.Repo.Link}}/projects/{{.Project.ID}}"{{end}}>
|
||||
{{svg "octicon-project" 14 "gt-mr-2"}}{{.Project.Title}}
|
||||
<a class="project" href="{{.Project.Link}}">
|
||||
{{if .Project.IsOrganizationProject}}{{svg "octicon-project-symlink" 14 "gt-mr-2"}}{{else}}{{svg "octicon-project" 14 "gt-mr-2"}}{{end}}{{.Project.Title}}
|
||||
</a>
|
||||
{{end}}
|
||||
{{if .Ref}}
|
||||
|
Reference in New Issue
Block a user