2019-10-15 21:19:32 +09:00
|
|
|
{{range .Attachments}}
|
2019-12-29 08:33:13 +09:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
|
2019-10-15 21:19:32 +09:00
|
|
|
{{if FilenameIsImage .Name}}
|
2019-12-29 08:33:13 +09:00
|
|
|
<img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
2019-10-15 21:19:32 +09: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 08:33:13 +09:00
|
|
|
{{end}}
|