This commit is contained in:
Mateusz Gruszczyński
2025-09-14 13:03:13 +02:00
parent 016f9896b7
commit 9bff1a43b3

View File

@@ -20,21 +20,20 @@
{{ (page_filesize / 1024) | round(1) }} kB
{% endif %}
</strong>
{% if id != 'all' and (id|string).isdigit() %}
{% else %}
| Łącznie:
<strong>
{% if total_filesize >= 1024*1024 %}
{{ (total_filesize / 1024 / 1024) | round(2) }} MB
{% else %}
{{ (total_filesize / 1024) | round(1) }} kB
{% endif %}
</strong>
{% endif %}
{% if not (id != 'all' and (id|string).isdigit()) %}
| Łącznie:
<strong>
{% if total_filesize >= 1024*1024 %}
{{ (total_filesize / 1024 / 1024) | round(2) }} MB
{% else %}
{{ (total_filesize / 1024) | round(1) }} kB
{% endif %}
</strong>
{% endif %}
</p>
<div>
{% if id|int(value=-1) > 0 %}
{% if id is string and id.isdigit() and id|int > 0 %}
<a href="{{ url_for('admin_receipts', id='all') }}" class="btn btn-outline-light me-2">
Pokaż wszystkie paragony
</a>