Commit 67432f37 authored by sajolida's avatar sajolida
Browse files

Merge branch 'web/15754-retry-from-another-mirror' (Closes: #15754)

parents c5a6f02f 08863be0
......@@ -186,6 +186,11 @@ document.addEventListener("DOMContentLoaded", function() {
} catch (e) { } // Ignore if we fail to hit the download counter
}
function showAnotherMirror() {
hide(document.getElementById("already-downloaded"));
show(document.getElementById("try-another-mirror"));
}
function resetVerificationResult(result) {
hide(document.getElementById("verifying-download"));
hide(document.getElementById("verification-successful"));
......@@ -283,6 +288,7 @@ document.addEventListener("DOMContentLoaded", function() {
e.preventDefault();
hitCounter("download-image");
toggleDirectBitTorrent("direct");
showAnotherMirror();
resetVerificationResult();
} finally {
// Setting window.location.href will abort AJAX requests resulting
......
......@@ -32,7 +32,13 @@ were solved, and known issues that have already been identified.</p>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" id="download-iso" class="use-mirror-pool btn btn-primary inline-block indent">Download Tails [[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]] ISO image (<span class="remove-extra-space">[[!inline pages="inc/stable_amd64_iso_size" raw="yes" sort="age"]]</span>)</a>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" id="download-iso" class="use-mirror-pool-on-retry btn btn-primary inline-block indent">Download Tails [[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]] ISO image (<span class="remove-extra-space">[[!inline pages="inc/stable_amd64_iso_size" raw="yes" sort="age"]]</span>)</a>
</div>
<p id="already-downloaded" class="indent"><a>I already downloaded Tails <span class="remove-extra-space">&nbsp;[[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]]</span>.</a></p>
<div id="direct-download-minor">
<p id="already-downloaded" class="indent"><a>I already downloaded Tails&nbsp;<span class="remove-extra-space">[[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]]</span>.</a></p>
<p id="try-another-mirror" class="indent">If the download fails, try to
<a href="[[!inline pages="inc/stable_amd64_img_url" raw="yes" sort="age"]]" class="usb upgrade download-only-img">download from another mirror.</a>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" class="dvd vm download-only-iso">download from another mirror.</a>
</p>
</div>
</div>
<div id="step-verify-direct">
......
......@@ -142,11 +142,18 @@ span.step-number {
}
html[dir="rtl"] .what-is-bittorrent-link { left: 1em; }
#already-downloaded {
#direct-download-minor {
margin-top: 0.5em;
}
#already-downloaded {
cursor: pointer;
}
#try-another-mirror {
display: none;
}
/* Skip verification */
#skip-verification-direct div {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment