Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
9149aa8b
Commit
9149aa8b
authored
Mar 27, 2018
by
intrigeri
Browse files
Merge remote-tracking branch 'origin/web/15443-mangled-urls-on-download-retry' (refs:
#15443
)
parents
7c9c1799
ee9a2aac
Changes
3
Hide whitespace changes
Inline
Side-by-side
wiki/src/install/inc/js/download.js
View file @
9149aa8b
...
...
@@ -219,11 +219,13 @@ document.addEventListener("DOMContentLoaded", function() {
}
else
if
(
result
===
"
failed
"
)
{
show
(
document
.
getElementById
(
"
verification-failed
"
));
replaceUrlPrefixWithRandomMirror
(
document
.
querySelectorAll
(
"
.use-mirror-pool
"
));
// Try again with different mirrors
// Try again with different mirrors
toggleDisplay
(
document
.
getElementsByClassName
(
"
use-mirror-pool
"
),
"
hide
"
);
toggleDisplay
(
document
.
getElementsByClassName
(
"
use-mirror-pool-on-retry
"
),
"
show
"
);
replaceUrlPrefixWithRandomMirror
(
document
.
querySelectorAll
(
"
.use-mirror-pool-on-retry
"
));
}
else
if
(
result
===
"
failed-again
"
)
{
show
(
document
.
getElementById
(
"
verification-failed-again
"
));
replaceUrlPrefixWithRandomMirror
(
document
.
querySelectorAll
(
"
.use-mirror-pool
"
));
// Change mirrors in case people try again anyway
}
}
...
...
wiki/src/install/inc/steps/download.inline.html
View file @
9149aa8b
...
...
@@ -12,6 +12,7 @@
<div
id=
"step-download-iso"
>
<h3><span
class=
"step-number"
><span
class=
"debian windows linux mac-usb mac-dvd upgrade-tails"
>
1.
</span>
1
</span>
Download Tails
</h3>
<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>
<p
id=
"already-downloaded"
class=
"indent"
><a>
I already downloaded Tails
<span
class=
"remove-extra-space"
>
[[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]]
</span>
.
</a></p>
</div>
...
...
@@ -91,7 +92,7 @@
<p>
[[How does the extension work?|contribute/design/verification_extension]]
</p>
"""]]
</div>
<p><a
href=
"[[!inline pages="
inc
/
stable_amd64_iso_url
"
raw=
"yes"
sort=
"age"
]]"
id=
"download-iso-again"
class=
"use-mirror-pool"
>
Please try to download again
…
</a></p>
<p><a
href=
"[[!inline pages="
inc
/
stable_amd64_iso_url
"
raw=
"yes"
sort=
"age"
]]"
id=
"download-iso-again"
class=
"use-mirror-pool
-on-retry
"
>
Please try to download again
…
</a></p>
</div>
<div
id=
"verification-failed-again"
class=
"block"
>
<p><b>
Verification failed again!
</b></p>
...
...
wiki/src/install/inc/stylesheets/download.css
View file @
9149aa8b
...
...
@@ -24,7 +24,8 @@ h1 {
#skip-download-direct
,
#skip-download-bittorrent
,
#extension-version
,
#broken-in-3-6
{
#broken-in-3-6
,
.use-mirror-pool-on-retry
{
display
:
none
;
}
...
...
intrigeri
@intrigeri
mentioned in issue
#15443 (closed)
·
May 14, 2020
mentioned in issue
#15443 (closed)
mentioned in issue #15443
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment