]> source.dussan.org Git - gitea.git/commit
Use `project.IconName` instead of repeated unreadable `if-else` chains (#23538)
authoryp05327 <576951401@qq.com>
Sun, 19 Mar 2023 12:44:48 +0000 (21:44 +0900)
committerGitHub <noreply@github.com>
Sun, 19 Mar 2023 12:44:48 +0000 (14:44 +0200)
commit1a4efa0ee9a49d48549be7479a46be133b9bc260
tree8be773cdf4ea88c662196e8e469b50bb997e3307
parent0206882e8a9ee226092ffd0d4d39de494d2f9b80
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>
models/project/project.go
templates/projects/list.tmpl
templates/repo/issue/list.tmpl
templates/repo/issue/new_form.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/projects/list.tmpl
templates/shared/issuelist.tmpl