{% extends "layouts/app.twig" %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('message.title') }}: {{ other_user.displayName }}{% endblock %} {% block content %}
{% for msg in messages %} {% set own_message = msg.user_id == user.id %}

{{ msg.text | nl2br }}

{% if not own_message and msg.read == false %} {% endif %}
{% endfor %}
{{ csrf() }}
{{ f.textarea( 'text', __('message.message'), {'required': true, 'rows': 3, 'label_hidden': true, 'no_div': true} ) }} {{ f.submit(m.icon('send-fill')) }}
{% endblock %}