{% from "card.html" import render_card with context %} {% if data.kind == "group" and data.conf.groups|default("cards") == "headings" %} {# D'abord les projets du groupe principal #}
{% for project in data.namespace.projects|sort(case_sensitive=false, attribute="full_path") %} {{ render_card(project) }} {% endfor %}
{# Puis les sous-groupes #} {% for path, group in data.groups.items() %} {% if path != data.namespace.full_path %}

{{ group.full_name }}

{% if group.description %}

{{ group.description }}

{% endif %}
{% for project in group.projects|sort(case_sensitive=false, attribute="full_path") %} {{ render_card(project) }} {% endfor %}
{% endif %} {% endfor %} {% else %}
{% for group in data.cards|sort(case_sensitive=false, attribute="full_path") %} {{ render_card(group) }} {% endfor %}
{% endif %}