{# Inputs: accounts: list[Account] — every account in the DB account_profiles: dict[int, str] — account_id -> profile slug profile: ProfileSettings — current effective profile (label only) #}
Profile per account
{% for a in accounts %} {% set current = account_profiles.get(a.id, 'active') %}
{{ a.broker }}/{{ a.label }}
{% endfor %}