Skip to content

Commit

Permalink
replaces and removes STRONG elements according to new HTML5 semantics
Browse files Browse the repository at this point in the history
Replaces STRONG elements with B, according to the latter's new HTML5
semantics[1].

Removes STRONG elements in headings, where they are superfluous both
semantically and visually.

[1]: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-b-element
  • Loading branch information
cfm committed Jul 19, 2021
1 parent 5ca5bf2 commit 80547cd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion securedrop/source_templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer>
<p id="footer-powered-by">
{{ gettext('Powered by') }} <strong>SecureDrop {{ version }}</strong>.
{{ gettext('Powered by') }} <b>SecureDrop {{ version }}</b>.
</p>
<p id="footer-advisory">
{{ gettext('Please note: Sharing sensitive documents may put you at risk, even when using Tor and SecureDrop.') }}
Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>{{ gettext('Welcome') }}</h1>
</div>
</section>

<p class="explanation">{{ gettext('Because we do not track users of our <strong>SecureDrop</strong>
<p class="explanation">{{ gettext('Because we do not track users of our <b>SecureDrop</b>
service, in future visits, using this codename will be the only way we have to communicate with you should we have
questions or are interested in additional information. Unlike passwords, there is no way to retrieve a lost codename.') }}
</p>
Expand Down
6 changes: 3 additions & 3 deletions securedrop/source_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body id="source-index">
<div id="js-warning" class="warning" role="alert">
<p>{{ gettext('Your Tor Browser\'s <a id="disable-js" href=""><strong>Security Level</strong></a> is too low. Use the <img src="{icon}" alt="&quot;Security Level&quot;"> button in your browser’s toolbar to change it.').format(icon=url_for("static", filename="i/font-awesome/white/guard.svg")) }}</p>
<p>{{ gettext('Your Tor Browser\'s <a id="disable-js" href=""><b>Security Level</b></a> is too low. Use the <img src="{icon}" alt="&quot;Security Level&quot;"> button in your browser’s toolbar to change it.').format(icon=url_for("static", filename="i/font-awesome/white/guard.svg")) }}</p>
</div>
{# Warning bubble to help TB users disable JavaScript with NoScript.
Included here so the images can preload while the user is first
Expand All @@ -27,8 +27,8 @@
<h2 id="security-level-heading" hidden>{{ gettext('How to change your security level') }}</h2>
<ol id="security-level-instructions">
<li>{{ gettext('Click the <img src="{icon}" alt="&quot;Security Level&quot; button"> in the toolbar above').format(icon=url_for("static", filename="i/font-awesome/black/guard.svg")) }}</li>
<li>{{ gettext('Select <strong>Advanced Security Settings</strong>') }}</li>
<li>{{ gettext('Select <strong>Safest</strong>') }}</li>
<li>{{ gettext('Select <b>Advanced Security Settings</b>') }}</li>
<li>{{ gettext('Select <b>Safest</b>') }}</li>
</ol>
<p>{{ gettext('<a href="/" aria-label="Follow these instructions, then refresh this page">Refresh this page</a>, and you\'re done!') }}</p>

Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
</nav>
<section>
<h1>{{ gettext('One more thing...') }}</h1>
<p id="click-new-identity-tor"> {{ gettext('Click the <img src={icon} alt="" width="16" height="16">&nbsp;<strong>New Identity</strong> button in your Tor Browser\'s toolbar. This will clear your Tor Browser activity data on this device.').format(icon=url_for('static', filename='i/torbroom-black.png')) }}</p>
<p id="click-new-identity-tor"> {{ gettext('Click the <img src={icon} alt="" width="16" height="16">&nbsp;<b>New Identity</b> button in your Tor Browser\'s toolbar. This will clear your Tor Browser activity data on this device.').format(icon=url_for('static', filename='i/torbroom-black.png')) }}</p>
</section>
{% endblock %}
2 changes: 1 addition & 1 deletion securedrop/source_templates/lookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h3 id="delete-heading-{{ reply.filename }}" hidden>Delete reply from {{ reply.d
<a class="btn danger" href="#delete-all-confirm">{{ gettext('DELETE ALL REPLIES') }}</a>
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
<dialog open id="delete-all-confirm" class="hidden-prompt" aria-labelledby="delete-all-heading">
<h3 id="delete-all-heading"><strong>{{ gettext('Are you finished with the replies?') }}</strong></h3>
<h3 id="delete-all-heading">{{ gettext('Are you finished with the replies?') }}</h3>
<button class="danger" type="submit">{{ gettext('YES, DELETE ALL REPLIES') }}</button>
<a class="btn" href="#delete-all">{{ gettext('NO, NOT YET') }}</a>
</dialog>
Expand Down
4 changes: 2 additions & 2 deletions securedrop/source_templates/session_timeout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h2 class="flash important-header" dir="{{ g.localeinfo.text_direction }}">
<strong>{{ gettext('Important') }}</strong>
{{ gettext('Important') }}
</h2>
<div class="localized" dir="{{ g.localeinfo.text_direction }}">
<p>{{ gettext('You were logged out due to inactivity. Click the <img src={icon} alt="" width="16" height="16">&nbsp;<strong>New Identity</strong> button in your Tor Browser\'s toolbar before moving on. This will clear your Tor Browser activity data on this device.').format(icon=url_for('static', filename='i/torbroom-coral.png')) }}</p>
<p>{{ gettext('You were logged out due to inactivity. Click the <img src={icon} alt="" width="16" height="16">&nbsp;<b>New Identity</b> button in your Tor Browser\'s toolbar before moving on. This will clear your Tor Browser activity data on this device.').format(icon=url_for('static', filename='i/torbroom-coral.png')) }}</p>
</div>

0 comments on commit 80547cd

Please sign in to comment.