- {% for cluster, cluster_roles in roles | group_by(attribute="cluster") %}
-
- {# Determine the initially selected role within the cluster #}
- {% set_global selected_role_id = "none" %}
- {% for role in cluster_roles %}
- {% if selected_role_id == "none" and role.name in user.roles %}
- {% set_global selected_role_id = role.id %}
- {% endif %}
- {% endfor %}
- {# Set default name to the selected role ID or first role if none selected #}
-
+
+
+