{# a first contact as a line to act on: who wants what of which agent through where, the first message or how many are in the group, and the decision #} {% set conversation = row.conversation %} {% set who = m.named(conversation) | trim %}
{{ m.icon("users" if conversation.kind == "group" else "user-plus") }}
{{ t.text("chats.wants." ~ conversation.kind, {"who": "%s" | format(who | e), "agent": "%s" | format(row.agent.name | e)}) | safe }} {{ m.logo(conversation.channel) }}
{% if conversation.kind == "group" %}{{ t.text("chats.members", {"n": conversation.member_count}) }}{% if conversation.first %} ยท {{ t.text("chats.first.at", {"when": conversation.first.at_ms | ago}) }}{% endif %}{% elif conversation.first %}{{ t.text("chats.quoted", {"text": conversation.first.text}) }}{% endif %}
{% if row.agent.id in approvable %}
{% endif %}