Commit 40689c80 authored by Mat's avatar Mat

ajuste le fragment qui reçoit users, plus username

parent bd04faaa
{% for username in usernames %}
<li>{{ username }}</li>
{% for user in users %}
{# @var user \SocketBundle\Entity\User #}
{# pour avoir l'autocomplétion #}
{{ user.username }}
<img src="{{ 'http://localhost/tbws/web/assets/img/avatar/' ~ user.avatar | default('default.jpg') }}" alt="avatar">
normalement, asset() retourne 'localhost/tbws/web/'
mais avec web socket, asset() retourne juste 'localhost'
{% endfor %}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment