{# avatar #}
{# bulle #}
{{ contact.fullname }} — {{ contact.createdAt|date('d/m/Y H:i') }}
{{ contact.message|nl2br }}
{% for reply in replies %} {% set isAdmin = reply.author is not null %} {% if isAdmin %} {% set alignRight = app.user is not null %} {# côté front #} {% else %} {% set alignRight = true %} {% endif %}
{# avatar #}
{% if isAdmin %} {{ app_site.title }} {% else %} {% endif %}
{# bulle #}
{{ isAdmin ? app_site.title : contact.fullname }} — {{ reply.createdAt|date('d/m/Y H:i') }}
{{ reply.message|nl2br }}
{% endfor %}