From aaf0bbb487fa20334190a739c493271777cb958f Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 25 Apr 2024 09:43:47 +0200 Subject: [PATCH] Update templates/repo/issue/card.tmpl Co-authored-by: KN4CK3R --- templates/repo/issue/card.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl index 82dbc871bd..64af3a372a 100644 --- a/templates/repo/issue/card.tmpl +++ b/templates/repo/issue/card.tmpl @@ -1,7 +1,7 @@ {{with .Issue}} {{if eq $.Page.Project.CardType 1}}{{/* Images and Text*/}} - {{$attachmentIDs := index $.Page.issuesAttachmentMap .ID}} - {{if $attachmentIDs}} + {{$attachments := index $.Page.issuesAttachmentMap .ID}} + {{if $attachments}}
{{range $attachmentIDs}} {{.Name}}