<ul class="nav nav-tabs">
    {% for item in items %}
        {% set isActive = (item.route == current_route) or (item.activeRoutes is defined and current_route in item.activeRoutes) %}
        <li class="{{ isActive ? 'active'}}">
            <a href="{{ isActive ? '#' : path(item.route) }}">
                {{- item.label -}}
                {% if item.badge > 0 %}
                    <span class="nb_affectation">{{ item.badge }}</span>
                {% endif %}
            </a>
        </li>
    {% endfor %}
</ul>