Commit c226720c authored by Mat's avatar Mat

fragment: on met un lien sur chaque user, qui servira à consulter l'historique de conversation

parent a9a33efb
...@@ -22,12 +22,14 @@ ...@@ -22,12 +22,14 @@
{# @var user \SocketBundle\Entity\User #} {# @var user \SocketBundle\Entity\User #}
{# pour avoir l'autocomplétion #} {# pour avoir l'autocomplétion #}
<li> <li>
<img src="{{ 'http://0.0.0.0:81/web/assets/img/avatar/' ~ user.avatar | default('default.jpg') }}" alt="avatar" class="avatar"> <a class="user_history" href="{{ user.username }}">
{# <img src="{{ 'http://0.0.0.0:81/web/assets/img/avatar/' ~ user.avatar | default('default.jpg') }}" alt="avatar" class="avatar">
normalement, asset() retourne 'localhost/tbws/web/' {#
mais avec web socket, asset() retourne juste 'localhost' normalement, asset() retourne 'localhost/tbws/web/'
#} mais avec web socket, asset() retourne juste 'localhost'
<span>{{ user.username }}</span> #}
<span>{{ user.username }}</span>
</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment