widgets: humanize sizes of attachements

This commit is contained in:
Darks 2021-04-27 19:35:37 +02:00
parent 9afdc63a8e
commit 55beccf7f4
Signed by untrusted user: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
{% for a in comment.attachments %}
<tr>
<td><a href="{{ a.url }}">{{ a.name }}</a></td>
<td>{{ a.size }}</td>
<td>{{ a.size | humanize(unit='o') }}</td>
</tr>
{% endfor %}
</table>