Merge pull request #1135 from leigh-pointer/dev

Fix for #1134 Files size incorrect when less than 1000 bytes
This commit is contained in:
Shaun Walker 2021-02-25 08:31:29 -05:00 committed by GitHub
commit dbecfc1c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@
<td><a href="@(ContentUrl(context.FileId))" target="_new">@context.Name</a></td>
<td>@context.ModifiedOn</td>
<td>@context.Extension.ToUpper() @Localizer["File"]</td>
<td>@(context.Size / 1000) KB</td>
<td>@string.Format("{0:0.00}", ((decimal)context.Size / 1000)) KB</td>
</Row>
</Pager>
@if (_files.Count == 0)