{% if problem_text %}
{{ t('status.prompt') }} {{ problem_text }}
{% elif result.valid %}
{{ t('status.prompt') }} {{ t('config.applied') if applied else t('config.valid') }}
{%- for w in result.warnings %}
{{ t('status.prompt') }} warning {{ w.file }}.yaml{% if w.subject %} [{{ w.subject }}]{% endif %}{% if w.key %} {{ w.key }}{% endif %}: {{ w.message }}
{%- endfor %}
{% else %}
{{ t('status.prompt') }} {{ t('config.invalid', count=result.errors | length) }}
{%- for e in result.errors %}
{{ e.file }}.yaml{% if e.subject %} [{{ e.subject }}]{% endif %}{% if e.key %} {{ e.key }}{% endif %}: {{ e.message }}
{%- endfor %}
{% endif %}