diff --git a/app/views/partials/_recovery_code.html.slim b/app/views/partials/_recovery_code.html.slim index 17d558d7ad9..2de1956b0a6 100644 --- a/app/views/partials/_recovery_code.html.slim +++ b/app/views/partials/_recovery_code.html.slim @@ -1,14 +1,17 @@ -#recovery-code(class="col-12 border-box mt4 mb3 py2 px3 fs-20p sans-serif\ - border border-dashed border-red rounded-xl relative") +#recovery-code(class="col-12 border-box mt4 mb3 py2 px4 fs-20p sans-serif\ + border border-dashed border-red rounded-xl relative clearfix") = image_tag asset_url('scissors.svg'), width: 24, class: 'absolute', style: 'top:-14px;left:-5px' p.bold.center.mt1 = image_tag(asset_url('p-key.svg'), width: 36, class: 'align-middle mr1') = t('users.recovery_code.header') - .navy.ml2.monospace + .navy.monospace - code.split(' ').each do |word| p.bold.mb0.h3 = word - .center.h5.mt2 + + .left.h5.mt2 = t('users.recovery_code.generated_on_html', date: content_tag(:strong, I18n.l(Time.zone.today, format: '%B %d, %Y'))) + .right.mt1 + = image_tag asset_url('logo.svg'), width: 96, class: 'align-middle mt-tiny' diff --git a/config/locales/headings/en.yml b/config/locales/headings/en.yml index c338774673e..7f614a9ffc7 100644 --- a/config/locales/headings/en.yml +++ b/config/locales/headings/en.yml @@ -71,7 +71,7 @@ en: profile_info: Profile information two_factor: Two-factor authentication verified_account: Verified Account - recovery_code: Make sure you can always sign in + recovery_code: Here is your personal key registrations: enter_email: Start creating an account search: Search for a user diff --git a/config/locales/users/en.yml b/config/locales/users/en.yml index db8a0fd2281..cdd22108948 100644 --- a/config/locales/users/en.yml +++ b/config/locales/users/en.yml @@ -8,7 +8,7 @@ en: recovery_code: header: Your personal key generated_on_html: Generated on %{date} - get_another: Get another code + get_another: Get another key print: Print this page help_text_header: Why do I need to store my new key on paper? help_text: |