2019-10-15 08:19:32 -04:00
|
|
|
{{range .Attachments}}
|
2020-04-21 00:15:41 -04:00
|
|
|
<div class="twelve wide column" style="padding: 6px;">
|
|
|
|
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
|
|
|
{{if FilenameIsImage .Name}}
|
|
|
|
<span class="ui image">{{svg "octicon-file-media" 16}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="ui image">{{svg "octicon-desktop-download" 16}}</span>
|
|
|
|
{{end}}
|
|
|
|
<span><strong>{{.Name}}</strong></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="four wide column" style="padding: 0px;">
|
|
|
|
<span class="ui text grey right">{{.Size | FileSize}}</span>
|
|
|
|
</div>
|
2019-12-28 18:33:13 -05:00
|
|
|
{{end}}
|