Skip to content

Commit 583f6ab

Browse files
committed
WT-786 smart window changes
1 parent 028aa59 commit 583f6ab

10 files changed

Lines changed: 40 additions & 0 deletions

File tree

bedrock/legal/templates/legal/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ <h2>{{ ftl('legal-downloadable-software-notices') }}</h2>
8888
<li>
8989
<a href="{{ url('legal.terms.thunderbird') }}">{{ ftl('legal-thunderbird') }}</a>
9090
</li>
91+
<li>
92+
<a href="{{ url('legal.terms.smart_window') }}">{{ ftl('legal-smart-window') }}</a>
93+
</li>
9194
</ul>
9295
{% endblock %}
9396

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{#
2+
This Source Code Form is subject to the terms of the Mozilla Public
3+
License, v. 2.0. If a copy of the MPL was not distributed with this
4+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
5+
#}
6+
7+
{% extends "legal/docs-base.html" %}
8+
9+
{% block page_title %}{{ ftl('legal-smart-window-rights') }}{% endblock %}

bedrock/legal/urls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
LegalDocView.as_view(template_name="legal/terms/thunderbird.html", legal_doc_name="thunderbird_about_rights"),
3232
name="legal.terms.thunderbird",
3333
),
34+
path(
35+
"terms/smart-window/",
36+
LegalDocView.as_view(template_name="legal/terms/smart-window.html", legal_doc_name="smart_window_about_rights"),
37+
name="legal.terms.smart_window",
38+
),
3439
path(
3540
"terms/mdn-plus/",
3641
LegalDocView.as_view(template_name="legal/terms/mdn-plus.html", legal_doc_name="mdn_plus_terms"),

bedrock/privacy/templates/privacy/base-protocol.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
(focus_url, 'privacy-focus', focus_name),
3838
(url('privacy.notices.thunderbird'), 'privacy-thunderbird', ftl('privacy-index-thunderbird')),
3939
(url('privacy.notices.mdn-plus'), 'privacy-mdn-plus', ftl('privacy-index-mdn-plus')),
40+
(url('privacy.notices.smart_window'), 'privacy-smart-window', ftl('privacy-index-smart-window')),
4041
] -%}
4142

4243
{% block content %}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{#
2+
This Source Code Form is subject to the terms of the Mozilla Public
3+
License, v. 2.0. If a copy of the MPL was not distributed with this
4+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
5+
#}
6+
7+
{% extends "privacy/notices/base-notice.html" %}
8+
9+
{% set body_id = "privacy-smart-window" %}
10+
{% block body_class %}mzp-t-mozilla format-none{% endblock%}
11+
12+
{% block article_header_logo %}{% endblock %}
13+
14+
{# Disable GA on Smart Window Privacy Notice. Similar to Issue 9426 #}
15+
{% block google_analytics %}{% endblock %}

bedrock/privacy/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# bug 1319207 - special URL for Firefox Focus in de locale
1919
path("firefox-klar/", views.firefox_focus_notices, name="privacy.notices.firefox-klar"),
2020
path("thunderbird/", views.thunderbird_notices, name="privacy.notices.thunderbird"),
21+
path("smart-window/", views.smart_window_notices, name="privacy.notices.smart_window"),
2122
path("websites/", views.websites_notices, name="privacy.notices.websites"),
2223
page("websites/data-preferences/", "privacy/data-preferences.html", ftl_files=["privacy/data-preferences"]),
2324
page("websites/cookie-settings/", "privacy/cookie-settings.html", ftl_files=["privacy/cookie-settings"]),

bedrock/privacy/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def get_legal_doc(self):
104104

105105
thunderbird_notices = PrivacyDocView.as_view(template_name="privacy/notices/thunderbird.html", legal_doc_name="thunderbird_privacy_policy")
106106

107+
smart_window_notices = PrivacyDocView.as_view(template_name="privacy/notices/smart-window.html", legal_doc_name="smart_window_privacy_notice")
108+
107109
websites_notices = PrivacyDocView.as_view(template_name="privacy/notices/websites.html", legal_doc_name="websites_privacy_notice")
108110

109111
mdn_plus = PrivacyDocView.as_view(template_name="privacy/notices/mdn-plus.html", legal_doc_name="mdn_plus_privacy")

l10n/en/mozorg/about/legal.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ legal-firefox = { -brand-name-firefox }
2323
legal-firefox-rights = { -brand-name-firefox }: About Your Rights
2424
legal-thunderbird = { -brand-name-thunderbird }
2525
legal-thunderbird-rights = { -brand-name-thunderbird }: About Your Rights
26+
legal-smart-window = Smart Window
27+
legal-smart-window-rights = Smart Window: About Your Rights
2628
legal-websites-and-communications = Websites & Communications Terms of Use
2729
legal-acceptable-use-policy = Acceptable Use Policy
2830
legal-firefox-cloud-services = { -brand-name-firefox } Cloud Services: Terms of Service

l10n/en/privacy/index.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ privacy-index-firefox-browser = { -brand-name-firefox-browser }
4242
privacy-index-firefox-focus = { -brand-name-firefox-focus }
4343
privacy-index-thunderbird = { -brand-name-thunderbird }
4444
privacy-index-mdn-plus = { -brand-name-mdn-plus }
45+
privacy-index-smart-window = Smart Window
4546
privacy-index-mozilla-subscription-services = { -brand-name-mozilla } Subscription Services
4647
4748
# This is title case since it appears in a menu, so does not use the normal brand name terms for "Mozilla accounts".

tests/functional/test_generated_pages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def pytest_generate_tests(metafunc):
2222
"/about/legal/terms/firefox-hello/",
2323
"/about/legal/terms/firefox/",
2424
"/about/legal/terms/thunderbird/",
25+
"/about/legal/terms/smart-window/",
2526
"/credits/",
2627
"/privacy/",
2728
"/privacy/principles/",

0 commit comments

Comments
 (0)