diff options
author | yp05327 <576951401@qq.com> | 2023-03-07 01:32:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 10:32:56 -0600 |
commit | 3f547c7afb8135cadd2253acece45de1e0703e76 (patch) | |
tree | b1fbff1d4eec4ebdc7531fdd0dba7cbe0cde7b0e /templates/projects | |
parent | 471b6d24b49ca749a93dcb1f292774aaa8935369 (diff) | |
download | gitea-3f547c7afb8135cadd2253acece45de1e0703e76.tar.gz gitea-3f547c7afb8135cadd2253acece45de1e0703e76.zip |
Fix incorrect project links and use symlink icon for org-wide projects (#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)
Diffstat (limited to 'templates/projects')
-rw-r--r-- | templates/projects/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index 8d9594e2b4..489189ec45 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -12,7 +12,7 @@ {{template "base/alert" .}} <div class="ui compact tiny menu"> <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=open"> - {{svg "octicon-project" 16 "gt-mr-3"}} + {{svg "octicon-project-symlink" 16 "gt-mr-3"}} {{JsPrettyNumber .OpenCount}} {{.locale.Tr "repo.issues.open_title"}} </a> <a class="item{{if .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=closed"> @@ -38,7 +38,7 @@ <div class="milestone list"> {{range .Projects}} <li class="item"> - {{svg "octicon-project"}} <a href="{{$.Link}}/{{.ID}}">{{.Title}}</a> + {{svg "octicon-project-symlink"}} <a href="{{.Link}}">{{.Title}}</a> <div class="meta"> {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} {{if .IsClosed}} |