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