mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 09:58:30 -04:00
Use project.IconName
instead of repeated unreadable if-else
chains (#23538)
The project type will be changed in https://github.com/go-gitea/gitea/pull/23353, so the old fix https://github.com/go-gitea/gitea/pull/23325 will not work as well. And I also found that there were some problems in the old fix.... --------- Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
0206882e8a
commit
1a4efa0ee9
7 changed files with 24 additions and 23 deletions
|
@ -38,7 +38,7 @@
|
|||
<div class="milestone list">
|
||||
{{range .Projects}}
|
||||
<li class="item">
|
||||
{{svg "octicon-project-symlink"}} <a href="{{.Link}}">{{.Title}}</a>
|
||||
{{svg .IconName}} <a href="{{.Link}}">{{.Title}}</a>
|
||||
<div class="meta">
|
||||
{{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}}
|
||||
{{if .IsClosed}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue