{% extends 'base.html' %} {% block title %}Messages · Brain{% endblock %} {% block body_class %}chat-body{% endblock %} {% block main %}
{% for item in messages %}
{% if item.color %}
{{ item.display_name }}
{% else %}
{{ item.display_name }}
{% endif %}{% if item.kind == 'event' %}
{{ item.headline }}
{% endif %}
{{ item.body }}
{{ item.created_at | live_time }}{% if item.kind == 'question' and item.status == 'open' %} · Question open{% endif %} · Open
{% if item.sender_kind == 'user' and item.recipient == '#live' %}
{% for status in item.delivery %}{{ 'Received by' if status.state == 'received' else 'Waiting for' }} {% if status.color %}{% endif %}{{ status.name }}{% else %}Not delivered{% endfor %}
{% endif %}
{% else %}

No messages in the last 2 hours.

{% endfor %}
{% if dispatch_enabled %}{% endif %}

Agents see messages at their next action. An idle agent waits until you type in its session.

{% endblock %} {% block scripts %}{% endblock %}