Update templates/repo/issue/card.tmpl

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
silverwind 2024-04-25 09:43:47 +02:00 committed by GitHub
parent 4dc4e22143
commit aaf0bbb487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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}}
<div class="card-attachment-images">
{{range $attachmentIDs}}
<img src="{{.DownloadURL}}" alt="{{.Name}}" />