Browse Source

Update templates/repo/issue/card.tmpl

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
pull/30687/head
silverwind 2 months ago
parent
commit
aaf0bbb487
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      templates/repo/issue/card.tmpl

+ 2
- 2
templates/repo/issue/card.tmpl 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}}" />

Loading…
Cancel
Save