{% import "components.html" as c with context %} {% set url = "/agents/" ~ ref(selected.computer_id) ~ "/" ~ ref(selected.id) ~ "/contacts/" ~ ref(contact.thread_id) ~ "/review?actor=" ~ ref(contact.actor_id) ~ "&target=" ~ ref(contact.target) ~ "&channel=" ~ contact.channel|urlencode ~ "&name=" ~ contact.name|urlencode ~ "&review=pending" %} {# the question about a conversation waiting to be looked at: who, wanting what, and the first thing they said; then the two answers #}

{{ t.text("review.first_contact") }}

{{ t.text("review.wants_" ~ contact.kind, {"who": asked.sender or contact.name, "agent": selected.name}) }}

{{ c.channels((contact.channel,)) }}{{ contact.channel }} · id {{ contact.name }}{% if asked.at_ms %} · {{ t.text("review.first_message_at", {"when": asked.at_ms|clock}) }}{% endif %}

{% if asked.answer == "listed" and asked.body is not none %}
{{ asked.body }}
{% elif asked.answer == "offline" %}
{{ t.text("contacts.offline") }}
{% elif asked.answer != "listed" %}
{{ t.text("contacts." ~ asked.answer, {"code": asked.code}) }}
{% endif %}