{% import "chats/macros.html" as m with context %} {# a row a conversation: who with and what kind, what was said last and when, and how many the agent has yet to read #} {% for row in rows %} {% set conversation = row.conversation %} {{ m.face(conversation) }}
{{ m.named(conversation) }}{{ t.text("chats.kind." ~ conversation.kind) }}{% if conversation.kind == "group" %} ยท {{ t.text("chats.members", {"n": conversation.member_count}) }}{% endif %}
{{ m.said(conversation.first if tab == "contacts" else conversation.latest) }}
{{ conversation.last_activity_at_ms | stamp }} {% if conversation.pending_count %}{{ conversation.pending_count }}{% else %}{% endif %}
{% else %}

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

{% endfor %} {% if onward %}
{{ t.text("chats.loading.more") }}
{% endif %}