{% extends "server/base.html" %} {% import "chats/macros.html" as m with context %} {% block title %}{{ t.text("chats.attention.title") }}{% endblock %} {% block top %}{% endblock %} {% block head %}{% endblock %} {% block body %} {# what waits for the account: first contacts of the agents it sees, newest first, to let in or turn away, and agents that failed to start, with why #}

{{ t.text("chats.attention.title") }}

{% if waiting or failed %}{{ (waiting | length) + (failed | length) }}{% endif %}{{ t.text("chats.all") }}{{ m.icon("chevron-right") }}
{% set approvable = approve %} {% for row in waiting %}{% include "chats/asked.html" %}{% endfor %} {% for agent in failed %}
{{ m.icon("triangle-alert") }}
{{ t.text("chats.failed.start", {"agent": "%s" | format(agent.name | e), "computer": computers.get(agent.computer_id, "—") | e}) | safe }} {% if agent.activity.reason %}
{{ agent.activity.reason }}
{% endif %}
{% endfor %} {% if not waiting and not failed %}

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

{% endif %}
{% endblock %}