usersHistory.html.twig 585 Bytes
Newer Older
1 2
{% for message in messages  %}
    {# @var message \SocketBundle\Entity\Message #}
Mat's avatar
Mat committed
3

4
    <div class="{% if message.author.username == username %}right{% else %}left{% endif %}">
5 6 7 8 9 10 11 12 13 14
        <div class="avatar">
            <img src="{{ 'http://0.0.0.0:81/web/assets/img/avatar/' ~ message.author.avatar | default('default.jpg') }}"
                 alt="avatar" class="avatar">
        </div>
        <div class="message">
            {{ message.content }}
            <span>{{ message.date|date('d/m/Y à H:i') }}</span>
        </div>
    </div>
    <br class="clearfix" />
Mat's avatar
Mat committed
15

16
{% endfor %}