Add translations for security settings view

This commit is contained in:
Andreas Nedbal 2022-02-13 18:53:40 +01:00 committed by Andreas Nedbal
parent 4d7edfb73d
commit a71b5ce294
2 changed files with 6 additions and 6 deletions

View File

@ -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 }

View File

@ -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"