From 6a4be2cb6a6193a3f41d5e08d05044e3c54efc38 Mon Sep 17 00:00:00 2001 From: Hester Gong Date: Wed, 12 Apr 2023 02:28:40 +0800 Subject: Add cardtype to org/user level project on creation, edit and view (#24043) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 截屏2023-04-11 13 55 49 截屏2023-04-11 13 55 59 After: Create 截屏2023-04-11 13 27 16 Edit 截屏2023-04-11 13 27 05 View 截屏2023-04-11 13 26 56 Co-authored-by: Giteabot --- templates/projects/new.tmpl | 18 ++++++++++++++++++ templates/projects/view.tmpl | 7 +++++++ 2 files changed, 25 insertions(+) (limited to 'templates/projects') diff --git a/templates/projects/new.tmpl b/templates/projects/new.tmpl index ecb8c74565..9accfbcc1c 100644 --- a/templates/projects/new.tmpl +++ b/templates/projects/new.tmpl @@ -45,6 +45,24 @@ {{end}} + +
+ + +
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 20c95c8278..41bbb83f7b 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -175,6 +175,13 @@
+ {{if eq $.Project.CardType 1}}{{/* Images and Text*/}} +
+ {{range (index $.issuesAttachmentMap .ID)}} + {{.Name}} + {{end}} +
+ {{end}}
-- cgit v1.2.3