{% 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") }}
{{ hit.conversation or t.text("chats.kind." ~ hit.kind) }} {{ m.agent(agent) }}
{{ m.who(hit.sender) }}{{ t.text("chats.colon") }}{% for text, matched in hit.parts %}{% if matched %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %}
{{ hit.at_ms | stamp }}
{% else %}

{{ t.text("chats.search.none") }}

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