{% set nbIsTyping = 0 %}
{% for user_is_typing in user_typing %}
{% if user_is_typing.date_typing == "is_typing" and user_is_typing.id != app.user.id %}
{% set nbIsTyping = nbIsTyping + 1 %}
{% endif %}
{% endfor %}
{% if nbIsTyping > 1 %}
<div class="container-event container-event-custom" id="forcebot" >
<div class="flex-element">
<div class="flex-anim">
<span>Des participants écrivent en ce moment</span>
<div class="loader">
<div class="loading one"></div>
<div class="loading two"></div>
<div class="loading three"></div>
<div class="loading four"></div>
</div>
</div>
</div>
</div>
{% else %}
{% for user_is_typing in user_typing %}
{% if user_is_typing.date_typing == "is_typing" and user_is_typing.id != app.user.id %}
<div class="container-event container-event-custom" id="forcebot" >
<div class="flex-element">
<div class="image-user">
{% if user_is_typing.picture_name is not null %}
<img src="/uploads/profiles/{{user_is_typing.picture_name}}">
{% endif %}
</div>
<div class="flex-anim">
<span>{{user_is_typing.name}} est en train d'écrire</span>
<div class="loader">
<div class="loading one"></div>
<div class="loading two"></div>
<div class="loading three"></div>
<div class="loading four"></div>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}