{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% block title %}{{ target_jid }} - {{ super() }}{% endblock %} {% block body %} {{ icon_defs( "lock-open", "lock-filled", "ok", "pencil", "dot-3", "share", "attach", "paper-plane-empty", "doc", "download", "wrench", "eye", "smile", "plus-circled", "quote-left", "trash-empty" ) }} {# TODO: this should be done in a more generic way in dialog module #}
{% for msg in messages %} {% set current_date = msg.timestamp|date_fmt('full', date_only=True) %} {% if loop.changed(current_date) %}

{{current_date}}
{% endif %} {% include 'chat/message.html' %} {% endfor %}
{% for file in attachments %} {% include 'chat/attachment_preview.html' %} {% endfor %}

{% endblock body %} {% block footer %}{% endblock footer %}