We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afc889f commit b700c11Copy full SHA for b700c11
templates/repo/issue/view_content/attachments.tmpl
@@ -27,9 +27,11 @@
27
<div class="ui small images">
28
{{- range .Attachments -}}
29
{{if FilenameIsImage .Name}}
30
- <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
31
- <img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
32
- </a>
+ {{if .Content not contains .DownloadURL}} ## NEED HELP HERE
+ <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
+ <img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
33
+ </a>
34
+ {{end}}
35
{{end}}
36
{{end -}}
37
</div>
0 commit comments