Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Web
Donate Static
Commits
591fe397
Commit
591fe397
authored
Feb 11, 2019
by
Hiro
🏄
Browse files
Fix thank you page
parent
8accf156
Changes
6
Hide whitespace changes
Inline
Side-by-side
content/thank-you/contents.lr
View file @
591fe397
_template:
thank-
you.html
_template:
la
you
t
.html
---
section: the tor project
---
...
...
templates/footer.html
View file @
591fe397
...
...
@@ -92,18 +92,5 @@
},
500
)
}
</script>
<script
type=
"text/javascript"
>
var
os
=
navigator
.
platform
;
if
(
os
.
indexOf
(
"
Linux
"
)
>=
0
)
{
$
(
"
#linux
"
).
attr
(
'
selected
'
,
true
);;
}
else
if
(
os
.
indexOf
(
"
Windows
"
)
>=
0
)
{
$
(
"
#windows
"
).
attr
(
'
selected
'
,
true
);;
}
else
if
(
os
.
indexOf
(
"
Mac
"
)
>=
0
)
{
$
(
"
#osx
"
).
attr
(
'
selected
'
,
true
);;
}
else
if
(
os
.
indexOf
(
"
Android
"
)
>=
0
)
{
$
(
"
#Android
"
).
attr
(
'
selected
'
,
true
);;
}
else
{
$
(
"
#platform
"
).
attr
(
'
selected
'
,
true
);;
}
</script>
{% include 'script-download.html' %}
</div>
templates/hero-download.html
View file @
591fe397
...
...
@@ -22,7 +22,7 @@
{% else %}
{% set download_link = '#android' %}
{% endif %}
<a
href=
"{{ download_link }}"
>
<a
class=
"downloadLink"
href=
"{{ download_link }}"
>
<i
class=
"fab fa-{{ id }} text-light"
></i>
</a>
</div>
...
...
templates/macros/downloads.html
View file @
591fe397
...
...
@@ -8,7 +8,7 @@
{% set sig_link_64 = download_link_64 + '.asc' %}
{% set sig_link_32 = download_link_32 + '.asc' %}
<a
href=
"{{ download_link_32 }}"
>
32-bit
</a>
(
<a
href=
"{{ sig_link_32 }}"
>
sig
</a>
) /
<a
href=
"{{ download_link_32 }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link_64 }}"
>
sig
<a/>
)
<a
class=
"downloadLink"
href=
"{{ download_link_32 }}"
>
32-bit
</a>
(
<a
href=
"{{ sig_link_32 }}"
>
sig
</a>
) /
<a
href=
"{{ download_link_32 }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link_64 }}"
>
sig
<a/>
)
{% endmacro %}
{% macro render_mac(version, alt) %}
...
...
@@ -19,7 +19,7 @@
{% set download_link = download_prefix + 'TorBrowser-' + version + '-osx64' + '_' + alt + '.dmg' %}
{% set sig_link = download_link + '.asc' %}
<a
href=
"{{ download_link }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link }}"
>
sig
</a>
)
<a
class=
"downloadLink"
href=
"{{ download_link }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link }}"
>
sig
</a>
)
{% endmacro %}
{% macro render_linux(version, alt) %}
...
...
@@ -32,5 +32,5 @@
{% set sig_link_64 = download_link_64 + '.asc' %}
{% set sig_link_32 = download_link_32 + '.asc' %}
<a
href=
"{{ download_link_32 }}"
>
32-bit
</a>
(
<a
href=
"{{ sig_link_32 }}"
>
sig
</a>
) /
<a
href=
"{{ download_link_32 }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link_64 }}"
>
sig
<a/>
)
<a
class=
"downloadLink"
href=
"{{ download_link_32 }}"
>
32-bit
</a>
(
<a
href=
"{{ sig_link_32 }}"
>
sig
</a>
) /
<a
href=
"{{ download_link_32 }}"
>
64-bit
</a>
(
<a
href=
"{{ sig_link_64 }}"
>
sig
<a/>
)
{% endmacro %}
templates/script-download.html
0 → 100644
View file @
591fe397
<script>
$
(
"
.downloadLink
"
).
click
(
function
(
e
)
{
e
.
preventDefault
();
//open download link in new page
window
.
open
(
$
(
this
).
attr
(
"
href
"
)
);
//redirect current page to success page
window
.
location
=
"
/thank-you
"
;
window
.
focus
();
}
);
</script>
templates/thank-you.html
View file @
591fe397
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<h4>
{ _('Sign up for Tor News and get updates and opportunities from across the organization and community.') }}
</h4>
<h4>
{
{
_('Sign up for Tor News and get updates and opportunities from across the organization and community.') }}
</h4>
</div>
<div
class=
"col-md-4"
>
<h4>
{{ _('Run a relay to make the network faster and more decentralized.') }}
</h4>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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