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