gitea/routers/web/org
Hester Gong 5482602ba8
Add cardtype to org/user level project on creation, edit and view (#24043) (#24066)
Backport #24043 

Part of #23318

The way to fix the missing cardtype for user/org level projects in this
PR is to port the cardtype related part from #22112 to org/user level
projects' template and router functions.

Before:
<img width="1135" alt="截屏2023-04-11 13 55 49"
src="https://user-images.githubusercontent.com/17645053/231069068-ba897129-ae90-4aa0-9b0f-468bf5c65375.png">

<img width="1131" alt="截屏2023-04-11 13 55 59"
src="https://user-images.githubusercontent.com/17645053/231069084-279f6681-5a10-42da-b5a8-2b0ba47c7078.png">


After:
Create
<img width="835" alt="截屏2023-04-11 13 27 16"
src="https://user-images.githubusercontent.com/17645053/231064445-0d6e12bd-5725-48db-a102-80e7472757c2.png">

Edit
<img width="852" alt="截屏2023-04-11 13 27 05"
src="https://user-images.githubusercontent.com/17645053/231064503-c70525cd-1038-43ec-8d93-8b8d95d183d4.png">

View
<img width="1329" alt="截屏2023-04-11 13 26 56"
src="https://user-images.githubusercontent.com/17645053/231064529-26023c85-698b-4b2e-af02-45f9820c77ec.png">

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-04-12 08:23:05 -04:00
..
home.go Add missing tabs to org projects page (#22705) (#23412) 2023-03-10 10:08:28 -06:00
main_test.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
members.go Fix leaving organization bug on user settings -> orgs (#21983) 2022-11-30 17:00:00 +08:00
org.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
org_labels.go Add loading yaml label template files (#22976) (#23232) 2023-03-01 21:57:34 -05:00
org_runners.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
projects.go Add cardtype to org/user level project on creation, edit and view (#24043) (#24066) 2023-04-12 08:23:05 -04:00
projects_test.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
setting.go Add user secrets (#22191) 2023-02-01 20:53:04 +08:00
setting_oauth2.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting_packages.go Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
setting_secrets.go Add user secrets (#22191) 2023-02-01 20:53:04 +08:00
teams.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00