debian-mirror-gitlab/app/views/layouts/nav/sidebar/_profile.html.haml

159 lines
7.1 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?) }
.nav-sidebar-inner-scroll
.context-header
2018-11-18 11:00:15 +05:30
= link_to profile_path, title: _('Profile Settings') do
2018-03-17 18:26:18 +05:30
.avatar-container.s40.settings-avatar
2019-03-02 22:35:43 +05:30
= image_tag avatar_icon_for_user(current_user, 40), class: "avatar s40 avatar-tile", alt: current_user.name
2019-09-04 21:01:54 +05:30
.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
= link_to profile_account_path do
.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')
2018-03-17 18:26:18 +05:30
= 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
2018-11-18 11:00:15 +05:30
= _('Access Tokens')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('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')
2018-03-17 18:26:18 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'layouts/nav/sidebar/profile_pipeline_quota_link'
2018-03-17 18:26:18 +05:30
= render 'shared/sidebar_toggle_button'