From ccf46e76d32c6d295fcd901857d9d0773f7d419a Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Wed, 18 Mar 2015 17:44:02 +1300 Subject: #6441 Update messages + new options when updating over HTTPS fails --- plugins/CoreUpdater/lang/en.json | 7 +- plugins/CoreUpdater/templates/oneClickResults.twig | 91 ++++++++++++---------- 2 files changed, 55 insertions(+), 43 deletions(-) (limited to 'plugins') diff --git a/plugins/CoreUpdater/lang/en.json b/plugins/CoreUpdater/lang/en.json index 2c3ffb9be2..83b946f002 100644 --- a/plugins/CoreUpdater/lang/en.json +++ b/plugins/CoreUpdater/lang/en.json @@ -48,9 +48,10 @@ "UpdateHasBeenCancelledExplanation": "Piwik One Click Update has been cancelled. If you can't fix the above error message, it is recommended that you manually update Piwik. %1$s Please check out the %2$sUpdate documentation%3$s to get started!", "UpdateTitle": "Update", "UpdateUsingHttpsFailed": "Downloading the latest Piwik version over secure HTTPS connection did not succeed, because of the following error:", - "UpdateUsingHttpsFailedHelp": "Please note that downloading the latest Piwik version (over secure HTTPS connection) can fail for various reasons, for example in case of network error, slow network speed, or wrong system configuration.", - "UpdateUsingHttpsFailedHelpWhatToDo": "You may continue the update via the non-secure standard HTTP connection by clicking on the button '%s'.", - "UpdateUsingHttpMessage": "Update Piwik automatically (over the non secure HTTP connection)", + "UpdateUsingHttpsFailedHelp": "Why did it fail? Downloading the latest Piwik version (over secure HTTPS connection) can fail for various reasons, for example because of a network error, slow network speed or wrong system configuration. Note that it could also mean that your server is the target of a MITM attack and someone is trying to replace the update with a malicious version of Piwik.", + "UpdateUsingHttpsFailedHelpWhatToDo": "It is recommended to retry the download using the secure HTTPS connection as it prevents MITM attacks.", + "UsingHttps": "using the secure HTTPS connection (recommended)", + "UsingHttp": "using the non-secure HTTP connection", "UpgradeComplete": "Upgrade complete!", "UpgradePiwik": "Upgrade Piwik", "VerifyingUnpackedFiles": "Verifying the unpacked files", diff --git a/plugins/CoreUpdater/templates/oneClickResults.twig b/plugins/CoreUpdater/templates/oneClickResults.twig index 8ded5fd604..c65d20aa2a 100644 --- a/plugins/CoreUpdater/templates/oneClickResults.twig +++ b/plugins/CoreUpdater/templates/oneClickResults.twig @@ -1,50 +1,61 @@ {% extends '@CoreUpdater/layout.twig' %} {% block content %} -
-{% for message in feedbackMessages %} -

✓ {{ message }}

-{% endfor %} -{% if httpsFail %} -
-
-
- - {{ 'CoreUpdater_UpdateUsingHttpsFailed'|translate }}
- "{{ error }}" -
-

{{ 'CoreUpdater_UpdateUsingHttpsFailedHelp'|translate }}

-

{{ 'CoreUpdater_UpdateUsingHttpsFailedHelpWhatToDo'|translate('CoreUpdater_UpdateAutomatically'|translate) }}

-
- {{ 'CoreUpdater_UpdateUsingHttpMessage'|translate }} -
+ {% for message in feedbackMessages %} +

✓ {{ message }}

+ {% endfor %} + + {% if httpsFail %} +
+
+
+ + {{ 'CoreUpdater_UpdateUsingHttpsFailed'|translate }}
+ "{{ error }}" +
+

{{ 'CoreUpdater_UpdateUsingHttpsFailedHelp'|translate }}

+

{{ 'CoreUpdater_UpdateUsingHttpsFailedHelpWhatToDo'|translate }}

+ + + + + + {{ 'CoreUpdater_UsingHttps'|translate }} +
+
- + + {{ 'CoreUpdater_UsingHttp'|translate }} +
+
+ +
+
+ {% elseif error %} +
+
+
+ + {{ error }} +
+
+
+
+ + {{ 'CoreUpdater_UpdateHasBeenCancelledExplanation'|translate("

","","")|raw }} +
+
+
+
+ +
+ {% else %} +
+
-
-
-
-{% elseif error %} -
-
-
- - {{ error }} -
-
-
-
- - {{ 'CoreUpdater_UpdateHasBeenCancelledExplanation'|translate("

","","")|raw }} -
-
-
-{% endif %} + {% endif %} -
- -
{% endblock %} -- cgit v1.2.3