{% extends 'base.html.twig' %} {% block title %}Mon compte - Na+{% endblock %} {% block body %}
{# ===== BANNIÈRE + HEADER ===== #}
{# Bannière #} {% if user.bannerPath %}
{% else %}
{% endif %}
{# Bouton Modifier en position absolue pour ne pas perturber le centrage #} {# Avatar centré chevauchant la bannière #}
{% if user.avatarPath %} Avatar {% else %}
{{ user.firstName|first|upper }}{{ user.lastName|first|upper }}
{% endif %}
{# Textes tous centrés #}

{{ user.displayName }}

{% if user.pronouns %}
({{ user.pronouns }})
{% endif %} {% if user.biography %}

{{ user.biography }}

{% endif %}
{% if user.geoRegion or user.geoDepartment %} 📍 {{ user.geoRegion ?? user.geoDepartment }} {% endif %} {% if user.website %} 🔗 {{ user.website|replace({'https://':'','http://':''}) }} {% endif %}
{# ===== ONGLETS ===== #}
{# Barre d'onglets #}
{# ===== POSTS ===== #}
{% if posts is empty %}

Tu n'as pas encore publié.

{% else %}
{% for post in posts %}
{{ post.createdAt|date('d/m/Y à H:i') }} {% if post.community %} {{ post.community.name }} {% endif %}
{% if post.content %}
{{ post.content|nl2br }}
{% endif %} {% if post.imagePath %} {% endif %}
❤️ {{ post.likes|length }} 💬 {{ post.comments|length }} Voir sur le fil →
{% endfor %}
{% endif %}
{# ===== PHOTOS ===== #} {# ===== COMMENTAIRES ===== #} {# ===== LIKES ===== #}
← Retour au fil d'actu
{% endblock %}