2019-10-15 14:19:32 +02:00
|
|
|
{{range .Attachments}}
|
2019-12-29 00:33:13 +01:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
|
2019-10-15 14:19:32 +02:00
|
|
|
{{if FilenameIsImage .Name}}
|
2019-12-29 00:33:13 +01:00
|
|
|
<img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
2019-10-15 14:19:32 +02:00
|
|
|
{{else}}
|
2020-02-11 18:02:41 +01:00
|
|
|
<span class="ui image" title='{{$.ctx.i18n.Tr "repo.issues.attachment.download" .Name}}'>{{svg "octicon-desktop-download" 16}}</span>
|
2019-10-15 14:19:32 +02:00
|
|
|
{{end}}
|
|
|
|
</a>
|
2019-12-29 00:33:13 +01:00
|
|
|
{{end}}
|