{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} {% set active_child = 'chats' %} {% from 'bootstrap/form.html' import render_form %} {% macro conversation_members(conversation) %} {% if len(conversation.members) == 2 %} {% for member in conversation.members %} {% if member.id != current_user.id %} {% if not conversation.read %}{% endif %} {{ member.display_name() }} {% if not conversation.read %}{% endif %} {% endif %} {% endfor %} {% else %} {% for member in conversation.members %} {% if member.id != current_user.id %} {% if not conversation.read %}{% endif %} {{ member.display_name() }} {% if not conversation.read %}{% endif %} {% endif %} {% endfor %} {% endif %} {% endmacro %} {% block app_content %}

{{ _('People') }}

{% if messages %}

{{ _('Messages with %(name)s', name=conversation.member_names(current_user.id)) }}

{{ _('Messages with: ') }}

{% for message in messages %}
{{ arrow.get(message.created_at).humanize(locale=locale) }} {{ message.sender.display_name() }}: {{ message.body_html|safe }}
{% endfor %} {{ render_form(form) }}
{% endif %}
{% endblock %}