Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 7 additions & 4 deletions app/views/partials/_recovery_code.html.slim
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 1 addition & 1 deletion config/locales/headings/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/locales/users/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down