{% extends "server/base.html" %} {% import "chats/macros.html" as m with context %} {% set short = ref(agent.id) %} {% block title %}{{ t.text("chats.title") }}{% endblock %} {% block top %}{% endblock %} {% block head %}{% endblock %} {% block body %} {# an agent's conversations on its page, newest first, those waiting for a decision under their own tab and beside them with what the agent says to them meanwhile; a row opens on the conversations page #}
{{ m.away(away, computers) }}
{% include "chats/agent_rows.html" %}

{{ t.text("chats.tab.contacts") }}

{% if waiting %}{{ waiting }}{% endif %}
{% set approvable = [agent.id] if approve else [] %} {% for conversation in pending %} {% set row = {"agent": agent, "conversation": conversation} %} {% include "chats/asked.html" %} {% else %}

{{ t.text("chats.none.contacts") }}

{% endfor %}
{% set failed = false %}{% set named = false %} {% include "chats/reply.html" %}
{% endblock %}