Skip to content

Add anchors for all release notes headings #16286

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions bedrock/firefox/templates/firefox/releases/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h2 class="c-release-draft-title">We’re still preparing the notes for this rel
{% if release.is_public and release_notes %}
{% for note in release_notes if note.tag == "New" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/highlight.svg') }}" width="30" height="30">
<h3>{{ note.tag }}</h3>
Expand All @@ -179,7 +179,7 @@ <h3>{{ note.tag }}</h3>

{% for note in release_notes if note.tag == "Fixed" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/check.svg') }}" width="30" height="30">
<h3>{{ note.tag }}</h3>
Expand All @@ -197,7 +197,7 @@ <h3>{{ note.tag }}</h3>

{% for note in release_notes if note.tag == "Changed" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/features.svg') }}" width="30" height="30">
<h3>{{ note.tag }}</h3>
Expand All @@ -215,7 +215,7 @@ <h3>{{ note.tag }}</h3>

{% for note in release_notes if note.tag == "Enterprise" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/enterprise.svg') }}" width="30" height="30">
<h3>{{ note.tag }}</h3>
Expand All @@ -240,7 +240,7 @@ <h3>{{ note.tag }}</h3>
{% continue %}
{% endif %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/developer.svg') }}" width="30" height="30">
<h3>Developer</h3>
Expand All @@ -258,7 +258,7 @@ <h3>Developer</h3>

{% for note in release_notes if note.tag == "HTML5" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left">
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/globe.svg') }}" width="30" height="30">
<h3>Web Platform</h3>
Expand Down Expand Up @@ -308,9 +308,11 @@ <h3>{{ note.tag }}</h3>

{% for note in release_notes if note.tag == "Known" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="known">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/stop.svg') }}" width="30" height="30">
<div class="mzp-l-sidebar"><h3>Unresolved</h3></div>
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('protocol/img/icons/stop.svg') }}" width="30" height="30">
<h3>Unresolved</h3>
</div>
<div class="mzp-l-main mzp-l-article">
<ul>
{% endif %}
Expand All @@ -325,17 +327,17 @@ <h3>{{ note.tag }}</h3>
{% for note in release_notes if note.tag == "Community" %}
{% if loop.first %}
<div class="mzp-l-content mzp-has-sidebar mzp-l-sidebar-left" id="{{ note.tag|lower() }}">
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('img/firefox/releasenotes/community.svg') }}" width="30" height="30">
<h3>Community Contributions</h3>
</div>
<div class="mzp-l-main mzp-l-article">
<ul>
<div class="mzp-l-sidebar">
<img class="sidebar-icon" alt="" src="{{ static('img/firefox/releasenotes/community.svg') }}" width="30" height="30">
<h3>Community Contributions</h3>
</div>
<div class="mzp-l-main mzp-l-article">
<ul>
{% endif %}
{{ note_entry(note) }}
{% if loop.last %}
</ul>
</div>
</ul>
</div>
</div>
{% endif %}
{% endfor %}
Expand Down