diff options
Diffstat (limited to 'app/views/profiles/accounts/show.html.haml')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index fdcee3670b7..8568e61aa33 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -2,18 +2,15 @@ - @content_class = "limit-container-width" unless fluid_layout - if current_user.ldap_user? - = render 'shared/global_alert', - variant: :info, - alert_class: 'gl-my-5', - dismissible: false do + = render Pajamas::AlertComponent.new(alert_class: 'gl-my-5', + dismissible: false) do .gl-alert-body = s_('Profiles|Some options are unavailable for LDAP accounts') - if params[:two_factor_auth_enabled_successfully] - = render 'shared/global_alert', - variant: :success, + = render Pajamas::AlertComponent.new(variant: :success, alert_class: 'gl-my-5', - close_button_class: 'js-close-2fa-enabled-success-alert' do + close_button_class: 'js-close-2fa-enabled-success-alert') do .gl-alert-body = html_escape(_('You have set up 2FA for your account! If you lose access to your 2FA device, you can use your recovery codes to access your account. Alternatively, if you upload an SSH key, you can %{anchorOpen}use that key to generate additional recovery codes%{anchorClose}.')) % { anchorOpen: '<a href="%{href}">'.html_safe % { href: help_page_path('user/profile/account/two_factor_authentication', anchor: 'generate-new-recovery-codes-using-ssh') }, anchorClose: '</a>'.html_safe } |