widgets: humanize sizes of attachements
This commit is contained in:
parent
9afdc63a8e
commit
55beccf7f4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue