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