Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_super_sidebar_logged_out.haml « header « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b0424ea4783b228b90b8547cdc97abd2d8d8233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%header.header-logged-out{ data: { testid: 'navbar' } }
  %a.gl-sr-only.gl-accessibility{ href: "#content-body" } Skip to content
  .container-fluid
    %nav.header-logged-out-nav.gl-display-flex.gl-gap-3.gl-justify-content-space-between{ 'aria-label': s_('LoggedOutMarketingHeader|Explore GitLab') }
      .header-logged-out-logo.gl-display-flex.gl-align-items-center.gl-gap-3
        %span.gl-sr-only GitLab
        = link_to root_path, title: _('Homepage'), id: 'logo', class: 'has-tooltip', aria: { label: _('Homepage') }, **tracking_attrs('main_navigation', 'click_gitlab_logo_link', 'navigation_top') do
          = brand_header_logo
        .gl-display-flex.gl-align-items-center
          - if Gitlab.com_and_canary?
            = gl_badge_tag({ variant: :success, size: :sm }, { href: Gitlab::Saas.canary_toggle_com_url, data: { testid: 'canary_badge_link' }, target: :_blank, rel: 'noopener noreferrer', class: 'canary-badge' }) do
              = _('Next')

      %ul.gl-list-style-none.gl-p-0.gl-m-0.gl-display-flex.gl-gap-3.gl-align-items-center.gl-flex-grow-1
        - if Gitlab.com?
          %li.header-logged-out-nav-item.header-logged-out-dropdown.gl-md-display-none
            %button.header-logged-out-toggle{ type: "button", data: { toggle: "dropdown" } }
              %span.gl-sr-only
                = _('Menu')
              = sprite_icon('hamburger', size: 16)
            .dropdown-menu
              %ul
                %li
                  = link_to Gitlab::Utils.append_path(promo_url, 'why-gitlab') do
                    = s_('LoggedOutMarketingHeader|Why GitLab')
                %li
                  = link_to Gitlab::Utils.append_path(promo_url, 'pricing') do
                    = s_('LoggedOutMarketingHeader|Pricing')
                %li
                  = link_to Gitlab::Utils.append_path(promo_url, 'sales') do
                    = s_('LoggedOutMarketingHeader|Contact Sales')
                %li
                  = link_to _("Explore"), explore_root_path
          %li.header-logged-out-nav-item.gl-display-none.gl-md-display-inline-block
            = link_to Gitlab::Utils.append_path(promo_url, 'why-gitlab') do
              = s_('LoggedOutMarketingHeader|Why GitLab')
          %li.header-logged-out-nav-item.gl-display-none.gl-md-display-inline-block
            = link_to Gitlab::Utils.append_path(promo_url, 'pricing') do
              = s_('LoggedOutMarketingHeader|Pricing')
          %li.header-logged-out-nav-item.gl-display-none.gl-md-display-inline-block
            = link_to Gitlab::Utils.append_path(promo_url, 'sales') do
              = s_('LoggedOutMarketingHeader|Contact Sales')
        %li.header-logged-out-nav-item{ class: ('gl-display-none gl-md-display-inline-block' if Gitlab.com?) }
          = link_to _("Explore"), explore_root_path, class: ''

      - if header_link?(:sign_in)
        %ul.gl-list-style-none.gl-p-0.gl-m-0.gl-display-flex.gl-gap-3.gl-align-items-center.gl-justify-content-end
          %li.header-logged-out-nav-item
            = link_to _('Sign in'), new_session_path(:user, redirect_to_referer: 'yes')
          - if allow_signup?
            %li.header-logged-out-nav-item
              = render Pajamas::ButtonComponent.new(href: new_user_registration_path, variant: :confirm) do
                = Gitlab.com? ? _('Get free trial') : _('Register')