diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 18:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 18:08:53 +0300 |
commit | 93d0784e6d8f43ef5a27f506784b4b0d989c0c2b (patch) | |
tree | bba6397c298bf0d42b78992ea16ddea60769be84 /app/views/profiles/accounts | |
parent | 4c3f961bd94656e64cee5b0ad07b3f49a84338a5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/profiles/accounts')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index 09b6117969c..799dfaae8c5 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -14,9 +14,11 @@ - c.with_body do = 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 } -.js-search-settings-section.gl-pb-6 - %h4.gl-my-0 - = s_('Profiles|Two-factor authentication') +.settings-section.js-search-settings-section + .settings-sticky-header + .settings-sticky-header-inner + %h4.gl-my-0 + = s_('Profiles|Two-factor authentication') %p.gl-text-secondary = s_("Profiles|Increase your account's security by enabling two-factor authentication (2FA).") %div @@ -32,17 +34,21 @@ = _('Enable two-factor authentication') - if display_providers_on_profile? - .js-search-settings-section.gl-border-t.gl-py-6 - %h4.gl-my-0 - = s_('Profiles|Service sign-in') + .settings-section.js-search-settings-section + .settings-sticky-header + .settings-sticky-header-inner + %h4.gl-my-0 + = s_('Profiles|Service sign-in') %p.gl-text-secondary = s_('Profiles|Connect a service for sign-in.') = render 'providers', providers: button_based_providers, group_saml_identities: local_assigns[:group_saml_identities] - if current_user.can_change_username? - .js-search-settings-section.gl-border-t.gl-py-6 - %h4.gl-my-0.warning-title - = s_('Profiles|Change username') + .settings-section.js-search-settings-section + .settings-sticky-header + .settings-sticky-header-inner + %h4.gl-my-0.warning-title + = s_('Profiles|Change username') %p.gl-text-secondary = s_('Profiles|Changing your username can have unintended side effects.') = succeed '.' do @@ -51,15 +57,19 @@ #update-username{ data: data } - if prevent_delete_account? - .js-search-settings-section.gl-border-t.gl-py-6 - %h4.gl-my-0.danger-title - = s_('Profiles|Delete account') + .settings-section.js-search-settings-section + .settings-sticky-header + .settings-sticky-header-inner + %h4.gl-my-0.danger-title + = s_('Profiles|Delete account') %p.gl-text-secondary = s_('Profiles|Account deletion is not allowed by your administrator.') - else - .js-search-settings-section.gl-border-t.gl-py-6 - %h4.gl-mt-0.danger-title - = s_('Profiles|Delete account') + .settings-section.js-search-settings-section + .settings-sticky-header + .settings-sticky-header-inner + %h4.gl-mt-0.danger-title + = s_('Profiles|Delete account') - if current_user.can_be_removed? && can?(current_user, :destroy_user, current_user) %p.gl-text-secondary = s_('Profiles|Deleting an account has the following effects:') |