diff --git a/static/css/style.css b/static/css/style.css
index 2f98d04..b644d70 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -977,3 +977,14 @@ td select.tom-dark {
font-size: 0.75rem;
}
}
+
+/* Mobile-only / Desktop-only helpery (jeśli nie chcesz polegać na d-sm-*) */
+@media (max-width: 420px) {
+ .user-label-desktop { display: none !important; }
+ .user-label-mobile { display: inline !important; }
+}
+
+@media (min-width: 421px) {
+ .user-label-desktop { display: inline !important; }
+ .user-label-mobile { display: none !important; }
+}
\ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index 3ac9bf3..02c660e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,146 +1,160 @@
-
-
- © 2025 linuxiarz.pl · source code
+
© 2025 linuxiarz.pl ·
+
+ source code
+
+
v{{ APP_VERSION }}
-
+
{% if not is_blocked %}
-
{% if request.endpoint != 'system_auth' %}
@@ -149,32 +163,24 @@
{% endif %}
+
-
{% set substrings = ['/admin/receipts', '/edit_my_list'] %}
{% if substrings | select("in", request.path) | list | length > 0 %}
{% endif %}
-
{% set substrings = ['/edit_my_list', '/admin/edit_list', '/admin/edit_categories'] %}
{% if substrings | select("in", request.path) | list | length > 0 %}
-
+
{% endif %}
-
{% endif %}
-
{% block scripts %}{% endblock %}
-
-
diff --git a/templates/main.html b/templates/main.html
index e82fe87..edefd39 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -2,20 +2,17 @@
{% block title %}Twoje listy zakupów{% endblock %}
{% block content %}
-
{% if not current_user.is_authenticated %}
ℹ️ Nie jesteś zalogowany/a. Możesz przeglądać tylko listy publiczne.
{% endif %}
-
{% if current_user.is_authenticated %}
{% endif %}
-
{% set month_names = ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień",
"październik", "listopad", "grudzień"] %}
-
📅 Wybierz miesiąc:
-
+
{% for m in month_options %}
{% set year, month = m.split('-') %}
@@ -56,7 +50,6 @@
-
@@ -64,100 +57,100 @@
-
{% if current_user.is_authenticated %}
Twoje listy
-
+
🗄️ Zarchiwizowane
+
{% if user_lists %}
{% for l in user_lists %}
{% set purchased_count = l.purchased_count %}
{% set total_count = l.total_count %}
{% set percent = (purchased_count / total_count * 100) if total_count > 0 else 0 %}
+
{{ l.title }} (Autor: Ty)
{% for cat in l.category_badges %}
-
+
{{ cat.name }}
{% endfor %}
+
+
-
-
- {# Kupione #}
+ style="width: {{ (purchased_count / total_count * 100) if total_count > 0 else 0 }}%" aria-valuemin="0" aria-valuemax="100">
-
- {# Niekupione #}
{% set not_purchased_count = l.not_purchased_count if l.total_count else 0 %}
+ style="width: {{ (not_purchased_count / total_count * 100) if total_count > 0 else 0 }}%" aria-valuemin="0" aria-valuemax="100">
-
- {# Pozostałe #}
-
-
+
Produkty: {{ purchased_count }}/{{ total_count }} ({{ percent|round(0) }}%)
{% if l.total_expense > 0 %}
— 💸 {{ '%.2f'|format(l.total_expense) }} PLN
{% endif %}
-
-
{% endfor %}
@@ -166,12 +159,13 @@
{% endif %}
{% endif %}
-
-
-
{{ l.title }} (Autor: {{ l.owner.username if l.owner else '—' }})
{% for cat in l.category_badges %}
-
+
{{ cat.name }}
{% endfor %}
-
+
+ class="btn btn-sm btn-outline-light d-none d-sm-flex align-items-center">
+ ✏️ Odznaczaj
+
+
+
+
✏️ Odznaczaj
-
-
+ style="width: {{ (purchased_count / total_count * 100) if total_count > 0 else 0 }}%" aria-valuemin="0" aria-valuemax="100">
{% set not_purchased_count = l.not_purchased_count if l.total_count else 0 %}
-
+ style="width: {{ (not_purchased_count / total_count * 100) if total_count > 0 else 0 }}%" aria-valuemin="0" aria-valuemax="100">
-
Produkty: {{ purchased_count }}/{{ total_count }} ({{ percent|round(0) }}%)
{% if l.total_expense > 0 %} — 💸 {{ '%.2f'|format(l.total_expense) }} PLN{% endif %}
@@ -231,7 +224,6 @@
Brak list do wyświetlenia
{% endif %}
-
-
-
{% block scripts %}
{% endblock %}
-
{% endblock %}