{{ "PLUGIN_ADMIN.RESTORE_GRAV"|t }}

{% set snapshots = admin.safeUpgradeSnapshots() %} {% if snapshots %}

{{ "PLUGIN_ADMIN.RESTORE_GRAV_DESC"|t }}

{{ nonce_field('admin-form', 'admin-nonce')|raw }}
{% for snapshot in snapshots %} {% set version = snapshot.source_version ?: snapshot.target_version %} {% endfor %}
{{ "PLUGIN_ADMIN.RESTORE_GRAV_TABLE_SNAPSHOT"|t }} {{ "PLUGIN_ADMIN.RESTORE_GRAV_TABLE_VERSION"|t }} {{ "PLUGIN_ADMIN.RESTORE_GRAV_TABLE_CREATED"|t }} {{ "PLUGIN_ADMIN.RESTORE_GRAV_TABLE_ACTIONS"|t }}
{% if snapshot.label %} {{ snapshot.label }}
{{ snapshot.id }} {% else %} {{ snapshot.id }} {% endif %}
{{ version ?: "PLUGIN_ADMIN.UNKNOWN"|t }} {% if snapshot.created_at %} {{ snapshot.created_at|date('Y-m-d H:i:s') }} {{ snapshot.created_at|nicetime(false, false) }} {% else %} {{ "PLUGIN_ADMIN.UNKNOWN"|t }} {% endif %}
{% else %}

{{ "PLUGIN_ADMIN.RESTORE_GRAV_NONE"|t }}

{% endif %}