{# The gated-save result: semantic diff, validation, restart advice, and the confirm button. Nothing here reports a write that did not happen, and a change that would break the config shows the errors instead of a save. #} {% set level_class = {'success': 'badge-success', 'warning': 'badge-warning', 'error': 'badge-danger', 'info': 'badge-info'} %} {% if plan %}
{% if plan.notice %}
{{ plan.notice.level }} {{ plan.notice.text }} {% if plan.label %}{{ plan.label }}{% endif %}
{% endif %} {% if plan.structural %}
⚠ {{ _('Structural change: config.toml is re-serialized with the project writer, so comments and blank lines may be reformatted.') }}
{% endif %} {% if plan.changes %} {% for change in plan.display_changes %} {% endfor %}
{{ _('Key') }} {{ _('Change') }} {{ _('Old value') }} {{ _('New value') }}
{{ change.path }} {{ change.kind }} {{ change.old | truncate(80) if change.old else '—' }} {{ change.new | truncate(80) if change.new else '—' }}
{% elif plan.text_only %}

{{ _('No key value changed.') }}

{% endif %} {% if plan.errors %}
{{ _('blocking errors') }}
{% endif %} {% if plan.warnings %}
{{ _('warnings (they do not block)') }}
{% endif %} {% if plan.written %}
{{ _('written') }} {% if plan.backup %} {{ _('backup: %(name)s', name=plan.backup) }} {% endif %} {% if plan.revision_id %} {{ _('revision: %(id)s', id=plan.revision_id) }} {% endif %}
{% endif %} {% if plan.restart %}
{{ _('restart required') }} {{ _('Read once at startup: %(keys)s', keys=plan.restart | join(', ')) }}
{% endif %} {% if plan.reload_error %}
{{ _('runtime reload failed') }} {{ plan.reload_error }}
{% elif plan.written %}
{{ _('The runtime reloaded this change live.') }}
{% endif %} {% for note in plan.notes %}
{{ note }}
{% endfor %} {% if plan.can_confirm %}
{% for name, value in plan.payload.items() %} {% endfor %} {{ _('A timestamped backup of the current file is written first.') }}
{% endif %}
{% endif %}