diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl index bb9340bb2e4cb..d0fa9d543ba33 100644 --- a/templates/repo/issue/card.tmpl +++ b/templates/repo/issue/card.tmpl @@ -1,13 +1,16 @@ {{with .Issue}} {{if eq $.Page.Project.CardType 1}}{{/* Images and Text*/}} + {{$attachmentIDs := index $.Page.issuesAttachmentMap .ID}} + {{if $attachmentIDs}}
+ {{end}} {{end}} -