Skip to content

Commit

Permalink
add share Firefox EN page (fix mozilla#15861)
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-2018 committed Jan 14, 2025
1 parent 515b1b2 commit ff67a06
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 17 additions & 8 deletions bedrock/firefox/templates/firefox/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
{% set email_subject = "Rejoins la team Firefox !" %}
{% set sign_off = "<strong>Conçu par Mozilla.</strong> <br> Pensé pour vous depuis 1998."|safe %}

{% else %}

{% set main_title = "Your poor friends :( " %}
{% set page_description = "Placeholder" %}
{% set main_tagline = "They might be using a browser that does not care about their privacy. We think, as a good friend, it is time to invite them to the sunny side of the internet. <a href='https://www.mozilla.org/firefox/share/'>Tell your friends about Firefox</a>"|safe%}
{% set sign_off = "<strong>Powered by Mozilla.</strong> <br> Putting people before profits since 1998."|safe %}

{% endif %}

{% block content %}
Expand All @@ -44,15 +51,17 @@
<h1>{{ main_title }}</h1>
<p class="tagline">{{ main_tagline }}</p>

<div class="copy-wrapper mzp-t-content-sm">
<div class="copy-text">
<p id="text-to-copy">{{ share_message }}</p>
{% if LANG == "de" or LANG == "fr" %}
<div class="copy-wrapper mzp-t-content-sm">
<div class="copy-text">
<p id="text-to-copy">{{ share_message }}</p>
</div>
<button id="copy-button" data-cta-text="Copy and share">
<span id="share-cta">{{ share_cta }}</span>
<span id="text-copied">{{ text_copied }}</span>
</button>
</div>
<button id="copy-button" data-cta-text="Copy and share">
<span id="share-cta">{{ share_cta }}</span>
<span id="text-copied">{{ text_copied }}</span>
</button>
</div>
{% endif %}
</section>

<p class="sign-off">
Expand Down
2 changes: 1 addition & 1 deletion bedrock/firefox/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
page("firefox/welcome/24/", "firefox/welcome/page24.html", ftl_files=["firefox/welcome/page24"]),
page("firefox/switch/", "firefox/switch.html", ftl_files=["firefox/switch"]),
page("firefox/pocket/", "firefox/pocket.html"),
page("firefox/share/", "firefox/share.html", active_locales=["de", "fr"]),
page("firefox/share/", "firefox/share.html", active_locales=["de", "fr", "en-US", "en-CA"]),
page("firefox/nothing-personal/", "firefox/nothing-personal/index.html"),
# Issue 6604, SEO firefox/new pages
path("firefox/linux/", views.PlatformViewLinux.as_view(), name="firefox.linux"),
Expand Down

0 comments on commit ff67a06

Please sign in to comment.