Skip to content

Commit

Permalink
Format the size using filesizeformat in Resource list #464
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <[email protected]>
  • Loading branch information
tdruez committed Aug 8, 2022
1 parent 1e32067 commit 8ff2860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpipe/templates/scanpipe/resource_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<td>
<a href="?type={{ resource.type }}" class="is-black-link">{{ resource.type }}</a>
</td>
<td>{{ resource.size|default_if_none:"" }}</td>
<td>{{ resource.size|filesizeformat|default_if_none:"" }}</td>
<td class="break-all">
<a href="?name={{ resource.name }}" class="is-black-link">{{ resource.name }}</a>
</td>
Expand Down

0 comments on commit 8ff2860

Please sign in to comment.