2021-04-29 21:17:54 +05:30
|
|
|
%aside.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?), **sidebar_tracking_attributes_by_object(current_user), 'aria-label': _('User settings') }
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-sidebar-inner-scroll
|
|
|
|
.context-header
|
2021-11-18 22:05:49 +05:30
|
|
|
= link_to profile_path, title: _('Profile Settings'), class: 'has-tooltip', data: { container: 'body', placement: 'right' } do
|
2022-11-25 23:54:43 +05:30
|
|
|
= render Pajamas::AvatarComponent.new(current_user, size: 32, alt: current_user.name, class: 'gl-mr-3 js-sidebar-user-avatar', avatar_options: { data: { testid: 'sidebar-user-avatar' } })
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.sidebar-context-title= _('User Settings')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-top-level-items
|
|
|
|
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
|
|
|
|
= link_to profile_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('profile')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Profile')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(path: 'profiles#show', html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Profile')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: [:accounts, :two_factor_auths]) do
|
2020-10-24 23:57:45 +05:30
|
|
|
= link_to profile_account_path, data: { qa_selector: 'profile_account_link' } do
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('account')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Account')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: [:accounts, :two_factor_auths], html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_account_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Account')
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
= render_if_exists 'layouts/nav/sidebar/profile_billing_link'
|
2018-12-05 23:21:45 +05:30
|
|
|
= nav_link(controller: 'oauth/applications') do
|
|
|
|
= link_to applications_profile_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('applications')
|
|
|
|
%span.nav-item-name
|
|
|
|
= _('Applications')
|
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: 'oauth/applications', html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to applications_profile_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
= _('Applications')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :chat_names) do
|
|
|
|
= link_to profile_chat_names_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('comment')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Chat')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :chat_names, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_chat_names_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Chat')
|
2022-11-25 23:54:43 +05:30
|
|
|
- unless Gitlab::CurrentSettings.personal_access_tokens_disabled?
|
|
|
|
= nav_link(controller: :personal_access_tokens) do
|
|
|
|
= link_to profile_personal_access_tokens_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('token')
|
|
|
|
%span.nav-item-name
|
|
|
|
= _('Access Tokens')
|
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :personal_access_tokens, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_personal_access_tokens_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
= _('Access Tokens')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :emails) do
|
2019-12-21 20:55:43 +05:30
|
|
|
= link_to profile_emails_path, data: { qa_selector: 'profile_emails_link' } do
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('mail')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Emails')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :emails, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_emails_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Emails')
|
2018-03-17 18:26:18 +05:30
|
|
|
- if current_user.allow_password_authentication?
|
|
|
|
= nav_link(controller: :passwords) do
|
2019-12-21 20:55:43 +05:30
|
|
|
= link_to edit_profile_password_path , data: { qa_selector: 'profile_password_link' } do
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('lock')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Password')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :passwords, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to edit_profile_password_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Password')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :notifications) do
|
|
|
|
= link_to profile_notifications_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('notifications')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Notifications')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :notifications, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_notifications_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Notifications')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :keys) do
|
|
|
|
= link_to profile_keys_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('key')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('SSH Keys')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :keys, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_keys_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('SSH Keys')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :gpg_keys) do
|
|
|
|
= link_to profile_gpg_keys_path do
|
|
|
|
.nav-icon-container
|
2019-12-04 20:38:33 +05:30
|
|
|
= sprite_icon('key')
|
2018-03-17 18:26:18 +05:30
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('GPG Keys')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :gpg_keys, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_gpg_keys_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('GPG Keys')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(controller: :preferences) do
|
|
|
|
= link_to profile_preferences_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('preferences')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Preferences')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :preferences, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_preferences_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Preferences')
|
2018-10-15 14:42:47 +05:30
|
|
|
= nav_link(controller: :active_sessions) do
|
|
|
|
= link_to profile_active_sessions_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('monitor-lines')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Active Sessions')
|
2018-10-15 14:42:47 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :active_sessions, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to profile_active_sessions_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Active Sessions')
|
2018-03-17 18:26:18 +05:30
|
|
|
= nav_link(path: 'profiles#audit_log') do
|
|
|
|
= link_to audit_log_profile_path do
|
|
|
|
.nav-icon-container
|
|
|
|
= sprite_icon('log')
|
|
|
|
%span.nav-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Authentication log')
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(path: 'profiles#audit_log', html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to audit_log_profile_path do
|
|
|
|
%strong.fly-out-top-item-name
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Authentication Log')
|
2020-04-22 19:07:51 +05:30
|
|
|
= render_if_exists 'layouts/nav/sidebar/profile_usage_quotas_link'
|
2019-09-04 21:01:54 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'shared/sidebar_toggle_button'
|