{% block user_block %}
{% set itemsPerColumn = admin_pool.getOption('dropdown_number_groups_per_colums') %}
{% set columnsCount = (admin_pool.dashboardgroups|length / itemsPerColumn)|round %}
1 %}style="width: {{ columnsCount*140 }}px;"{% endif %}
>
{% for group in admin_pool.dashboardgroups %}
{% set display = (group.roles is empty or is_granted('ROLE_SUPER_ADMIN') ) %}
{% for role in group.roles if not display %}
{% set display = is_granted(role) %}
{% endfor %}
{# Do not display the group label if no item in group is available #}
{% set item_count = 0 %}
{% if display %}
{% for admin in group.items if item_count == 0 %}
{% if admin.hasroute('list') and admin.isGranted('LIST') %}
{% set item_count = item_count+1 %}
{% endif %}
{% endfor %}
{% endif %}
{% if display and (item_count > 0) %}
{% if columnsCount > 1 and loop.index0 % itemsPerColumn == 0 %}
{% if loop.first %}