<section class="row merged chat cloud rounded" data-chat-element="messages">
	{% for message in messages %}
	<div class="message {% if message.type != 'message' %}{{ message.type }}{% endif %}">
		<h3 class="coal"><b>{{ message.from.id ?? message.from._key }}</b> <span class="unselectable">{{ message.from.type|account_type_to_russian }}</span> <span class="date unselectable"><b>{{ message.date|date('H:i d.m.Y') }}</b></span></h3>
		<p>{{ message.text }}</p>
	</div>
	{% endfor %}
</section>
