gitea/models
yp05327 1a4efa0ee9
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>
2023-03-19 14:44:48 +02:00
..
actions Fix missing commit status in PR which from forked repo (#23351) 2023-03-13 16:05:19 -05:00
activities Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
admin
asymkey Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
auth Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
avatars Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
db Test renderReadmeFile (#23185) 2023-03-09 09:24:23 +08:00
dbfs Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
fixtures Replace `repo.namedBlob` by `git.TreeEntry`. (#22898) 2023-03-15 16:51:39 -05:00
git Use CleanPath instead of path.Clean (#23371) 2023-03-08 20:17:39 +08:00
issues add user rename endpoint to admin api (#22789) 2023-03-14 03:45:21 -04:00
migrations Do not store user projects as organization projects (#23353) 2023-03-17 21:07:23 +08:00
organization Add missing tabs to org projects page (#22705) 2023-03-10 09:18:20 -06:00
packages Add Swift package registry (#22404) 2023-03-13 15:28:39 -05:00
perm
project Use `project.IconName` instead of repeated unreadable `if-else` chains (#23538) 2023-03-19 14:44:48 +02:00
pull
repo Fix tags sort by creation time (descending) on branch/tag dropdowns (#23491) 2023-03-16 12:01:10 -05:00
secret
system Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
unit
unittest Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
user Add login name and source id for admin user searching API (#23376) 2023-03-15 19:53:01 +08:00
webhook Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
error.go
fixture_generation.go
fixture_test.go
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go