{% if result.message %}

{{ result.message }}

{% else %}
{% if result.found %}

Saved, then found by search — round trip in {{ "{:,}".format(result.elapsed_ms) }} ms.

{% else %}

Saved in {{ "{:,}".format(result.elapsed_ms) }} ms.

Search hasn't caught up with it yet — try the search card in a few seconds.

{% endif %}

Written for agent {{ result.agent }} at {{ result.path }}.

{% if result.found %}

What search returned:

{% for hit in result.hits %}
{{ hit.source }}

{{ hit.snippet }}

{% endfor %} {% endif %}
{% endif %}