From 0623e267b7f7422935c4b1bec91db1fa4f9914af Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Fri, 10 Apr 2026 14:27:32 +0200 Subject: [PATCH] improve: company list on profile - vertical, alphabetical, alternating bg Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/user_profile.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/user_profile.html b/templates/user_profile.html index 8303266..b5b7f35 100644 --- a/templates/user_profile.html +++ b/templates/user_profile.html @@ -231,7 +231,9 @@

{% if user_companies and user_companies|length > 1 %} - {{ user_companies|map(attribute='company')|selectattr('name')|map(attribute='name')|join(' ยท ') }} + {% for uc in user_companies|sort(attribute='company.name') %}{% if uc.company %} + {{ uc.company.name }} + {% endif %}{% endfor %} {% elif profile_user.company %} {{ profile_user.company.name }} {% else %}