diff --git a/templates/list.html b/templates/list.html index 3ddae8a..0607cde 100644 --- a/templates/list.html +++ b/templates/list.html @@ -8,6 +8,20 @@ {% if list.is_archived %} (Archiwalna) {% endif %} + + {# Kategorie #} + {% if list.categories %} + {% for cat in list.categories %} + + {{ cat.name }} + + {% endfor %} + {% else %} + + ➕ Dodaj kategorię + + {% endif %} ← Powrót do list diff --git a/templates/list_share.html b/templates/list_share.html index 1675385..b013a2b 100644 --- a/templates/list_share.html +++ b/templates/list_share.html @@ -8,6 +8,7 @@ {% if list.is_archived %} (Archiwalna) {% endif %} + {% if total_expense > 0 %} 💸 {{ '%.2f'|format(total_expense) }} PLN @@ -17,8 +18,18 @@ 💸 0.00 PLN {% endif %} + + {# Kategorie - tylko wyświetlenie, bez linków #} + {% if list.categories %} + {% for cat in list.categories %} + + {{ cat.name }} + + {% endfor %} + {% endif %} +