From 51bd9f25dcf6148c0299b9c2e44c2cba1b4dbf80 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Fri, 10 Apr 2026 14:25:29 +0200 Subject: [PATCH] feat: company dropdown on user profile for multi-company users - "Profil firmy" button becomes a dropdown listing all companies - Subtitle under name shows all companies separated by dots - Single-company users see no changes Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/user_profile.html | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/templates/user_profile.html b/templates/user_profile.html index 67f6c0d..8303266 100644 --- a/templates/user_profile.html +++ b/templates/user_profile.html @@ -230,7 +230,9 @@ {% endif %}

- {% if profile_user.company %} + {% if user_companies and user_companies|length > 1 %} + {{ user_companies|map(attribute='company')|selectattr('name')|map(attribute='name')|join(' · ') }} + {% elif profile_user.company %} {{ profile_user.company.name }} {% else %} Członek portalu Norda Biznes @@ -248,7 +250,25 @@ Wyślij wiadomość prywatną na portalu - {% if profile_user.company %} + {% if user_companies and user_companies|length > 1 %} +

+ +
+ {% for uc in user_companies %} + {% if uc.company %} + + {{ uc.company.name }} + + {% endif %} + {% endfor %} +
+
+ {% elif profile_user.company %}