From 9bff1a43b3ac86edc479226aa33de5c336c1307d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 14 Sep 2025 13:03:13 +0200 Subject: [PATCH] poprawki --- templates/admin/receipts.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/templates/admin/receipts.html b/templates/admin/receipts.html index f45e0ed..a90f165 100644 --- a/templates/admin/receipts.html +++ b/templates/admin/receipts.html @@ -20,21 +20,20 @@ {{ (page_filesize / 1024) | round(1) }} kB {% endif %} - {% if id != 'all' and (id|string).isdigit() %} - {% else %} - | Łącznie: - - {% if total_filesize >= 1024*1024 %} - {{ (total_filesize / 1024 / 1024) | round(2) }} MB - {% else %} - {{ (total_filesize / 1024) | round(1) }} kB - {% endif %} - - {% endif %} + {% if not (id != 'all' and (id|string).isdigit()) %} + | Łącznie: + + {% if total_filesize >= 1024*1024 %} + {{ (total_filesize / 1024 / 1024) | round(2) }} MB + {% else %} + {{ (total_filesize / 1024) | round(1) }} kB + {% endif %} + + {% endif %}

- {% if id|int(value=-1) > 0 %} + {% if id is string and id.isdigit() and id|int > 0 %} Pokaż wszystkie paragony