Skip to content

Commit

Permalink
Merge pull request #6288 from eaon/6287-codename-show-hide-i18n
Browse files Browse the repository at this point in the history
Translate Show/Hide strings in the remember codename widget
  • Loading branch information
legoktm authored Feb 18, 2022
2 parents c92142d + de6047c commit ecd6b2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions securedrop/sass/source.sass
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
cursor: pointer

&:after
content: "Show"
content: attr(data-show)
display: block
float: right

Expand All @@ -56,7 +56,7 @@
&[open]
summary
&:after
content: "Hide"
content: attr(data-hide)

@media only screen and (max-width: 880px)
#codename-hint
Expand Down
4 changes: 3 additions & 1 deletion securedrop/source_templates/lookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{% block body %}
{% if new_user_codename %}
<details class="code-reminder pull-left" id="codename-hint">
<summary>{{ gettext('Remember, your codename is:') }}</summary>
<summary data-show="{{ gettext('Show') }}" data-hide="{{ gettext('Hide') }}">
{{ gettext('Remember, your codename is:') }}
</summary>
<mark class="codename">{{ new_user_codename }}</mark>
</details>
{% endif %}
Expand Down

0 comments on commit ecd6b2b

Please sign in to comment.