From d6116a2740109d8728ff5c38b0fe30bb9b72bb86 Mon Sep 17 00:00:00 2001 From: Cory Francis Myers Date: Tue, 27 Jul 2021 11:59:12 -0700 Subject: [PATCH] addresses review feedback Adds explicit title-case ARIA-LABEL attributes to elements whose strings are in all caps to support idiomatic translation (cf. #5821, #6003). thread: https://github.com/freedomofpress/securedrop/pull/6041#discussion_r673878829 --- securedrop/source_templates/base.html | 2 +- securedrop/source_templates/generate.html | 2 +- securedrop/source_templates/index.html | 4 ++-- securedrop/source_templates/login.html | 4 ++-- securedrop/source_templates/logout.html | 2 +- securedrop/source_templates/lookup.html | 8 ++++---- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/securedrop/source_templates/base.html b/securedrop/source_templates/base.html index f309e4514d..bfb75f8115 100644 --- a/securedrop/source_templates/base.html +++ b/securedrop/source_templates/base.html @@ -37,7 +37,7 @@

{{ gettext("We're sorry, our SecureDrop is currently offline.") }}

{% if 'logged_in' in session %} {% endif %} diff --git a/securedrop/source_templates/generate.html b/securedrop/source_templates/generate.html index 310f39f12a..afd694459f 100644 --- a/securedrop/source_templates/generate.html +++ b/securedrop/source_templates/generate.html @@ -28,7 +28,7 @@

{{ gettext('Welcome') }}

-
diff --git a/securedrop/source_templates/index.html b/securedrop/source_templates/index.html index fd3bd2038a..622e1a3509 100644 --- a/securedrop/source_templates/index.html +++ b/securedrop/source_templates/index.html @@ -61,7 +61,7 @@

{{ gettext('First time submitting to our SecureDrop? Start here.') }}

@@ -75,7 +75,7 @@

{{ gettext('Already have a codename? Check for replies or submit something new.') }}

diff --git a/securedrop/source_templates/login.html b/securedrop/source_templates/login.html index c758e40500..7f6b6d7907 100644 --- a/securedrop/source_templates/login.html +++ b/securedrop/source_templates/login.html @@ -24,10 +24,10 @@

{{ gettext('Enter Codename') }}

- - + {{ gettext('CANCEL') }}
diff --git a/securedrop/source_templates/logout.html b/securedrop/source_templates/logout.html index dcdf020716..5fcab4f7e0 100644 --- a/securedrop/source_templates/logout.html +++ b/securedrop/source_templates/logout.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block body %}

{{ gettext('One more thing...') }}

diff --git a/securedrop/source_templates/lookup.html b/securedrop/source_templates/lookup.html index 6bc27de258..da3d3931b0 100644 --- a/securedrop/source_templates/lookup.html +++ b/securedrop/source_templates/lookup.html @@ -54,13 +54,13 @@

{{ gettext('Submit Messages') }}

- - + {{ gettext('CANCEL') }}
@@ -88,7 +88,7 @@

{{ gettext('Read Replies') }}

{{ gettext('Delete this reply?') }} {{ gettext('Cancel') }} - +