{% macro modal_msg(msg, date) -%} {%- endmacro %} {% macro chat_box(msg_list, agent, allow_send=True, agent_jid=None) -%}

Chat

{{ msg_list.__len__() }}
{% for date, msg in msg_list %} {% if msg.sent %}
{% else %}
{% endif %}
{{ msg.sender.localpart }} {{ date }}
Message User Image
{% filter escape %}{{ msg.body }}{% endfilter %}
{% endfor %}
{% if allow_send %} {% endif %}
{%- endmacro %}