{% import "@ModuleAutoUpgrade/macros/icons.twig" as icons %}
{{ 'The pre-Upgrade checklist'|trans }}
{% if showErrorMessage %}

{{ 'The checklist is not OK. You can only upgrade your shop once all indicators are green.'|trans }}

{% endif %}

{{ 'Before starting the upgrade process, please make sure this checklist is all green.'|trans }}

{% if adminDirectoryWritableReport %} {% endif %}
{{ 'The 1-click upgrade module is up-to-date (your current version is v%s)'|trans([moduleVersion]) }} {% if not moduleIsUpToDate %} {% if versionGreaterThan1_5_3 %} {{ 'Update'|trans({}, 'Admin.Actions') }} {% endif %} {{ 'Download'|trans }} {% endif %} {% if moduleIsUpToDate %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{% if not phpUpgradeRequired %} {{ 'Your server is running on a supported PHP version.'|trans }} {% else %} {{ 'The PHP version your server is running on is obsolete and needs to be upgraded. [1]Learn more why[/1] or [2]ignore[/2].'|trans({ '[1]': '', '[/1]': '', '[2]': '', '[/2]': '', })|raw }} {% endif %} {% if not phpUpgradeRequired %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{{ 'Your store\'s root directory is writable (with appropriate CHMOD permissions)'|trans }} {% if rootDirectoryIsWritable %} {{ icons.ok }} {% else %} {{ icons.nok }} {{ rootDirectoryWritableReport }} {% endif %}
{{ 'The "/admin/autoupgrade" directory is writable (appropriate CHMOD permissions)'|trans|raw }} {% if adminDirectoryIsWritable %} {{ icons.ok }} {% else %} {{ icons.nok }} {{ adminDirectoryWritableReport }} {% endif %}
{{ 'PHP\'s "Safe mode" option is turned off'|trans|raw }} {% if safeModeIsDisabled %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{{ 'PHP\'s "allow_url_fopen" option is turned on, or cURL is installed'|trans|raw }} {% if allowUrlFopenOrCurlIsEnabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'PHP\'s "zip" extension is enabled'|trans|raw }} {% if zipIsEnabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'Your store is in maintenance mode'|trans }} {% if not storeIsInMaintenance %}
{% endif %}
{% if storeIsInMaintenance %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'PrestaShop\'s caching features are disabled'|trans }} {% if cachingIsDisabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{% if maxExecutionTime == 0 %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: unlimited)'|trans }} {% else %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: %s seconds)'|trans([maxExecutionTime]) }} {% endif %} {% if maxExecutionTime == 0 %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{% if isPrestaShopReady %} {{ 'PrestaShop requirements are satisfied.'|trans }} {% else %} {{ 'PrestaShop requirements are not satisfied. [1]See details[/1] or [2]ignore[/2].'|trans({ '[1]': '', '[/1]': '', '[2]': '', '[/2]': '', })|raw }} {% endif %} {% if isPrestaShopReady %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}

{{ 'Please also make sure you make a full manual backup of your files and database.'|trans }}