From 18e2d376c2f657fbff458f75bd2fdce4d5d19f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Mon, 28 Jul 2025 14:28:58 +0200 Subject: [PATCH] spojne info na liscie --- templates/list.html | 20 +++++++++++++------- templates/list_share.html | 18 ++++++++++++------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/templates/list.html b/templates/list.html index 6b4c2bc..b500a7f 100644 --- a/templates/list.html +++ b/templates/list.html @@ -55,7 +55,7 @@ 📊 Postęp listy — {{ purchased_count }}/ {{ total_count }} kupionych - ({{ percent|round(0) }}%) + ({{ percent|int }}%)
@@ -108,13 +108,19 @@ {% endif %} - {% if item.note %} - [ {{ item.note }} ] - {% endif %} - {% if item.not_purchased_reason %} - [ Powód: {{ item.not_purchased_reason }} ] - {% endif %} +
+ {% if item.note %} + [ {{ item.note }} ] + {% endif %} + {% if item.not_purchased_reason %} + [ Powód: {{ item.not_purchased_reason }} ] + {% endif %} + {% if item.added_by and item.owner_id and item.added_by_id and item.added_by_id != item.owner_id %} + [ Dodał/a: {{ item.added_by }} ] + {% endif %} +
+
diff --git a/templates/list_share.html b/templates/list_share.html index 61f4cdf..7bde4af 100644 --- a/templates/list_share.html +++ b/templates/list_share.html @@ -43,12 +43,18 @@ {% endif %} - {% if item.note %} - [ {{ item.note }} ] - {% endif %} - {% if item.not_purchased_reason %} - [ Powód: {{ item.not_purchased_reason }} ] - {% endif %} +
+ {% if item.note %} + [ {{ item.note }} ] + {% endif %} + {% if item.not_purchased_reason %} + [ Powód: {{ item.not_purchased_reason }} ] + {% endif %} + {% if item.added_by and item.owner_id and item.added_by_id and item.added_by_id != item.owner_id %} + [ Dodał/a: {{ item.added_by }} ] + {% endif %} +
+