{% import "chats/macros.html" as m with context %}
{# what the search found: the conversation and its agent, who said it, the words met marked, and when #}
{% for agent, hit in hits %}
{% set address = ref(agent.id) ~ "/" ~ ref(hit.thread_id) %}
{% set query = (kept ~ "&" if kept else "") ~ "around=" ~ (hit.message_id | urlencode) %}
{{ m.face({"kind": hit.kind, "name": hit.conversation, "handle": none, "channel": hit.channel}, "gav") }}
{{ t.text("chats.search.none") }}
{% endfor %} {% if onward %}{% endif %}