1
0
Fork 0
forked from forgejo/forgejo

Rename ByteSize to ReadableSize

This commit is contained in:
0ko 2024-03-31 20:17:12 +05:00
parent dae95f473e
commit c2d137d1f2
4 changed files with 10 additions and 9 deletions

View file

@ -14,7 +14,7 @@
</a>
{{end}}
<span class="item not-mobile" {{if not (eq .Repository.Size 0)}}data-tooltip-content="{{.Repository.SizeDetailsString ctx.Locale}}"{{end}}>
{{$fileSizeFields := ctx.Locale.TrSize .Repository.Size }}
{{$fileSizeFields := ctx.Locale.TrSize .Repository.Size}}
{{svg "octicon-database"}} <b>{{$fileSizeFields.PrettyNumber}}</b> {{$fileSizeFields.TranslatedUnit}}
</span>
{{end}}