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