2018-04-25 10:54:26 -04:00
|
|
|
- return unless current_user
|
|
|
|
|
|
|
|
%ul
|
|
|
|
%li.current-user
|
2021-02-09 10:09:39 -05:00
|
|
|
- if current_user_menu?(:profile)
|
2021-05-06 23:10:17 -04:00
|
|
|
= link_to current_user, class: 'gl-line-height-20!', data: { user: current_user.username, testid: 'user-profile-link', qa_selector: 'user_profile_link' } do
|
2021-02-09 10:09:39 -05:00
|
|
|
= render 'layouts/header/current_user_dropdown_item'
|
|
|
|
- else
|
|
|
|
.gl-py-3.gl-px-4
|
|
|
|
= render 'layouts/header/current_user_dropdown_item'
|
2018-04-25 10:54:26 -04:00
|
|
|
%li.divider
|
2018-10-04 04:19:51 -04:00
|
|
|
- if can?(current_user, :update_user_status, current_user)
|
|
|
|
%li
|
2021-04-09 23:09:09 -04:00
|
|
|
%button.gl-button.btn.btn-link.menu-item.js-set-status-modal-trigger{ type: 'button' }
|
2020-12-09 07:09:42 -05:00
|
|
|
- if show_status_emoji?(current_user.status) || user_status_set_to_busy?(current_user.status)
|
2020-09-09 17:08:33 -04:00
|
|
|
= s_('SetStatusModal|Edit status')
|
|
|
|
- else
|
|
|
|
= s_('SetStatusModal|Set status')
|
2019-11-08 07:06:32 -05:00
|
|
|
- if current_user_menu?(:start_trial)
|
|
|
|
%li
|
2019-11-22 16:06:19 -05:00
|
|
|
%a.trial-link{ href: trials_link_url }
|
2021-01-26 10:08:58 -05:00
|
|
|
= s_("CurrentUser|Start an Ultimate trial")
|
2019-11-08 07:06:32 -05:00
|
|
|
= emoji_icon('rocket')
|
2018-04-25 10:54:26 -04:00
|
|
|
- if current_user_menu?(:settings)
|
|
|
|
%li
|
2021-02-09 10:09:39 -05:00
|
|
|
= link_to s_("CurrentUser|Edit profile"), profile_path, data: { qa_selector: 'edit_profile_link' }
|
|
|
|
%li
|
|
|
|
= link_to s_("CurrentUser|Preferences"), profile_preferences_path
|
2020-06-11 05:08:16 -04:00
|
|
|
= render_if_exists 'layouts/header/buy_pipeline_minutes', project: @project, namespace: @group
|
2020-05-15 08:08:28 -04:00
|
|
|
= render_if_exists 'layouts/header/upgrade'
|
2019-09-26 11:06:18 -04:00
|
|
|
|
|
|
|
- if current_user_menu?(:help)
|
|
|
|
%li.divider.d-md-none
|
|
|
|
%li.d-md-none
|
|
|
|
= link_to _("Help"), help_path
|
|
|
|
%li.d-md-none
|
|
|
|
= link_to _("Support"), support_url
|
2020-09-10 05:08:27 -04:00
|
|
|
%li.d-md-none
|
|
|
|
= render 'shared/help_dropdown_forum_link'
|
2019-09-26 11:06:18 -04:00
|
|
|
%li.d-md-none
|
|
|
|
= link_to _("Submit feedback"), "https://about.gitlab.com/submit-feedback"
|
|
|
|
- if current_user_menu?(:help) || current_user_menu?(:settings) || current_user_menu?(:profile)
|
2019-10-07 20:06:10 -04:00
|
|
|
%li.d-md-none
|
|
|
|
= render 'shared/user_dropdown_contributing_link'
|
2020-10-13 02:09:09 -04:00
|
|
|
= render 'shared/user_dropdown_instance_review'
|
2019-11-07 07:06:21 -05:00
|
|
|
- if Gitlab.com_but_not_canary?
|
|
|
|
%li.d-md-none
|
2019-09-26 11:06:18 -04:00
|
|
|
= link_to _("Switch to GitLab Next"), "https://next.gitlab.com/"
|
|
|
|
|
2018-04-25 10:54:26 -04:00
|
|
|
- if current_user_menu?(:sign_out)
|
2018-10-18 09:27:04 -04:00
|
|
|
%li.divider
|
2018-04-25 10:54:26 -04:00
|
|
|
%li
|
2020-01-14 07:07:41 -05:00
|
|
|
= link_to _("Sign out"), destroy_user_session_path, method: :post, class: "sign-out-link", data: { qa_selector: 'sign_out_link' }
|