-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add intro and new formatting for Firefox PN and ToU #15982 #16009
base: main
Are you sure you want to change the base?
Conversation
- New page templates - Switch logic - New styles
7fd1650
to
361d3f6
Compare
|
||
<div class="mzp-l-content c-back"> | ||
<a href="{{ url('legal.index') }}"> | ||
<span class="mzp-c-button-icon-start" aria-hidden="true"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .mzp-c-button-icon-start
class requires an inline SVG to work so I get to copy/paste it 6 times.
OTOH I'm horribly misusing it here and am not against pulling this out into a new class so the icon can be an image on the page.
|
||
{% block side_nav %} | ||
<div class="c-toc"> | ||
<h3>{{ ftl('privacy-firefox-contents') }}</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking: This is broken.
{% endblock %} | ||
|
||
{% block intro %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to an include.
@@ -34,6 +34,14 @@ | |||
@import '../m24/vars/fonts'; | |||
@import '../m24/vars/text'; | |||
|
|||
// smooth scroll | |||
html { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making this site-wide behaviour. Pages shouldn't scroll differently from each other.
Opening for review but DNM because tests are broken. |
One-line summary
Add intro and new formatting for Firefox Privacy Notice and Terms of Use
Significant changes and points to review
firefox-tou
switch is enabledfirefox_about_rights.md
and will be replaced by a new file namedfirefox_terms_of_use.md
firefox-tou
switchIssue / Bugzilla link
Fix #15982
Testing
Affected pages:
Steps for testing:
make_preflight
before you open your venv to make sure you have the most recent legal docsDEV=False
in your .env file so you can test the switches/data/legal_docs/firefox_privacy_notice.md
/data/legal_docs/firefox_terms_of_use.md
(create the file if it does not exist)./manage.py shell_plus
LegalDoc.objects.refresh()
firefox-tou
switch on and make sure everything is workingIf you run into trouble pmac can help you.
Fixes from #15997:
privacy/firefox.ftl
file is included only where needed (instead of on all PN pages)Missing