replace filesizeformat filter with app implementation

This commit is contained in:
yggverse 2025-09-11 17:47:42 +03:00
parent fc8f9dbc3a
commit ba692f9d2a
6 changed files with 37 additions and 28 deletions

View file

@ -10,7 +10,7 @@
<ul>
<li><span title="Indexed">{{ row.indexed }}</span></li>
{% if row.created %}<li><span title="Created">({{ row.created }})</span></li>{% endif %}
<li><span title="Size">{{ row.size | filesizeformat }}</span></li>
<li><span title="Size">{{ row.size }}</span></li>
{% if row.files %}<li><span title="Files">{{ row.files }} file{{ row.files | pluralize(plural="s") }}</span></li>{% endif %}
{% if row.scrape %}
<li><span title="Seeders" class="seeders">{{ row.scrape.seeders }}</span></li>

View file

@ -9,7 +9,7 @@
{% if created %}
<li><span title="Created">({{ created }})</span></li>
{% endif %}
<li><span title="Size">{{ size | filesizeformat }}</span></li>
<li><span title="Size">{{ size }}</span></li>
{% if files_total %}
<li><span title="Files">{{ files_total }} file{{ files_total | pluralize(plural="s") }}</span></li>
{% endif %}
@ -42,7 +42,7 @@
{{ file.path }}
{% endif %}
</td>
<td>{{ file.size | filesizeformat }}</td>
<td>{{ file.size }}</td>
</tr>
{% endfor %}
</tbody>