{% if kind == "convert" and ok %}

Conversion complete

Output size: {{ size }} bytes.

Download {{ filename }}

{% elif kind == "inventory" and ok %}

Inventory report

{{ report_text }}
{% elif kind == "validate" and ok %}

Mapping is valid

No errors detected.

{% elif kind == "validate" and not ok and errors is defined %}

Mapping has errors

{% else %}

Error

{{ error_message|default('Unknown error.') }}

{% endif %}