summaryrefslogtreecommitdiff
path: root/app/views/layouts/devise.html.haml
blob: 87a8b6dd870c2f303dae1fcc8d803fbec1aa22f9 (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
54
55
56
57
58
59
60
61
62
63
64
!!! 5
%html.devise-layout-html{ class: system_message_class }
  = render "layouts/head", { startup_filename: 'signin' }
  %body.login-page.application.navless{ class: "#{user_application_theme} #{client_class_list}", data: { page: body_data_page, qa_selector: 'login_page' } }
    = header_message
    = render "layouts/init_client_detection_flags"
    - if Feature.enabled?(:restyle_login_page, @project)
      .page-wrap.borderless
        .login-page-broadcast
          = render "layouts/broadcast"
        .container.navless-container
          .content
            = render "layouts/flash"
            .mt-3
              .col-sm-12.gl-text-center
                %img.gl-w-10{ :alt => _("GitLab Logo"), :src => image_path('logo.svg') }
                %h1.mb-3.gl-font-size-h2
                  = current_appearance&.title.presence || _('GitLab')
                - if current_appearance&.description?
                  = brand_text
            .mb-3
              .gl-w-half.gl-xs-w-full.gl-ml-auto.gl-mr-auto.bar
                = yield
                = render_if_exists 'layouts/devise_help_text'


        = render 'devise/shared/footer', footer_message: footer_message
    - else
      .page-wrap
        = render "layouts/header/empty"
        .login-page-broadcast
          = render "layouts/broadcast"
        .container.navless-container
          .content
            = render "layouts/flash"
            .row.mt-3
              .col-sm-12
                %h1.mb-3.font-weight-normal
                  = current_appearance&.title.presence || _('GitLab')
            .row.mb-3
              .col-md-6.order-12.order-sm-1.brand-holder
                - unless recently_confirmed_com?
                  = brand_image
                  - if current_appearance&.description?
                    = brand_text
                  - else
                    %h3.gl-sm-mt-0
                      = _('A complete DevOps platform')

                    %p
                      = _('GitLab is a single application for the entire software development lifecycle. From project planning and source code management to CI/CD, monitoring, and security.')

                    %p
                      = _('This is a self-managed instance of GitLab.')

                - if Gitlab::CurrentSettings.sign_in_text.present?
                  = markdown_field(Gitlab::CurrentSettings.current_application_settings, :sign_in_text)

                = render_if_exists 'layouts/devise_help_text'

              .col-md-6.order-1.new-session-forms-container{ class: recently_confirmed_com? ? 'order-sm-first' : 'order-sm-12' }
                = yield

        = render 'devise/shared/footer', footer_message: footer_message