ffddf3f8a6
Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
15 lines
583 B
Cheetah
15 lines
583 B
Cheetah
{{- range .Attachments -}}
|
|
<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"}}</span>
|
|
{{else}}
|
|
<span class="ui image">{{svg "octicon-desktop-download"}}</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>
|
|
{{end -}}
|