{% import "chats/macros.html" as m with context %} {# the conversations, newest first: who with, through which agent, what was said last and when; one waiting says what kind it is and its first message #} {% for row in rows %} {% set conversation = row.conversation %} {% set address = ref(row.agent.id) ~ "/" ~ ref(conversation.thread_id) %} {{ m.face(conversation, "gav") }}
{{ m.named(conversation) }} {{ m.agent(row.agent) }}
{% if tab == "contacts" %}{{ t.text("chats.kind." ~ conversation.kind) }}{% if conversation.kind == "group" %} · {{ t.text("chats.members", {"n": conversation.member_count}) }}{% endif %} · {{ m.said(conversation.first) }}{% else %}{{ m.said(conversation.latest) }}{% endif %}
{{ conversation.last_activity_at_ms | stamp }}
{% else %}

{{ t.text("chats.none." ~ tab) }}

{% endfor %} {% if onward %}
{% endif %}