Add translations for security settings view
This commit is contained in:
parent
4d7edfb73d
commit
a71b5ce294
|
@ -1,7 +1,7 @@
|
|||
.card
|
||||
.card-body
|
||||
%h2= t('views.settings.security.2fa.title')
|
||||
%h2= t(".heading")
|
||||
- if current_user.otp_module_disabled?
|
||||
= render partial: 'settings/security/totp_setup', locals: { qr_svg: qr_svg }
|
||||
= render partial: "settings/security/totp_setup", locals: { qr_svg: qr_svg }
|
||||
- else
|
||||
= render partial: 'settings/security/totp_enabled', locals: { recovery_code_count: recovery_code_count }
|
||||
= render partial: "settings/security/totp_enabled", locals: { recovery_code_count: recovery_code_count }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
= render 'settings/security', qr_svg: @qr_svg, recovery_code_count: @recovery_code_count
|
||||
= render "settings/security", qr_svg: @qr_svg, recovery_code_count: @recovery_code_count
|
||||
|
||||
- provide(:title, generate_title('Security Settings'))
|
||||
- parent_layout 'user/settings'
|
||||
- provide(:title, generate_title(t(".title")))
|
||||
- parent_layout "user/settings"
|
||||
|
|
Loading…
Reference in New Issue