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