{% 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 %}