From 1a4efa0ee9a49d48549be7479a46be133b9bc260 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sun, 19 Mar 2023 21:44:48 +0900 Subject: 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 --- templates/shared/issuelist.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/shared/issuelist.tmpl') diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index ae9cb55d44..40ddb4dab0 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -88,7 +88,7 @@ {{end}} {{if .Project}} - {{if .Project.IsOrganizationProject}}{{svg "octicon-project-symlink" 14 "gt-mr-2"}}{{else}}{{svg "octicon-project" 14 "gt-mr-2"}}{{end}}{{.Project.Title}} + {{svg .Project.IconName 14 "gt-mr-2"}}{{.Project.Title}} {{end}} {{if .Ref}} -- cgit v1.2.3