{# Card de résultat User dans /search?type=users. Args : - profile : User cible - is_self : bool (true si c'est l'utilisateur connecté) - is_following : bool (l'utilisateur courant suit-il déjà profile ?) Structure : wrapper avec lien titre/meta + action (form follow) sibling. Évite le HTML invalide form > a > button. #}
  • {% set hit_avatar = user_avatar(profile) %} {% if hit_avatar %} {% else %} {% endif %}

    {{ profile.displayName ?: profile.username }}

    @{{ profile.username }}
    {% if profile.bio %}

    {{ profile.bio|slice(0, 120) }}{% if profile.bio|length > 120 %}…{% endif %}

    {% endif %}
    {% if not is_self %}
    {% include 'profile/_follow_button.html.twig' with { profile: profile, is_following: is_following } only %}
    {% endif %}