{% import "components.html" as c with context %}
{% if answer != "listed" %}
{{ t.text("search.timeout" if code == "SEARCH_TIMEOUT" else "search." ~ answer) }}
{% elif not rows %}
{{ t.text("search.empty") }}
{% else %} {% for row in rows %} {{ c.avatar(row.thread_id, small=true) }}{{ row.name }}{{ c.icon('arrow-right') }} {% for text, matched in row.parts %}{% if matched %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %} {{ row.speaker }} {% endfor %} {% endif %}