Catégories
    {% for groupe in groupes %}
  • {{ groupe.getNom() }}
    • {% set categories = groupe.getCategories() %} {% set length = categories|length %} {% if length is divisible by(8) %} {% set nbrBloc = length % 8 %} {% else %} {% set nbrBloc = (length % 8) + 1 %} {% endif %} {% set starCate = 0 %} {% set endCate = 10 %} {% for i in 1..nbrBloc %} {% set endCate = i * 10 %}
        {% for j in starCate..endCate %} {% if categories[j] is defined %}
      • {{ categories[j].getNom() }}
      • {% endif %} {% endfor %}
      {% set starCate = endCate + 1 %} {% endfor %} {% if groupe.getImage() %}
      {% endif %}
  • {% endfor %}