debian-mirror-gitlab/app/views/admin/sessions/new.html.haml

24 lines
1.1 KiB
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
- @hide_breadcrumbs = true
2019-12-26 22:10:19 +05:30
- page_title _('Enter Admin Mode')
2019-12-21 20:55:43 +05:30
.row.justify-content-center
2020-04-08 14:13:33 +05:30
.col-md-5.new-session-forms-container
2019-12-21 20:55:43 +05:30
.login-page
#signin-container
2020-05-24 23:13:21 +05:30
- if any_form_based_providers_enabled?
= render 'devise/shared/tabs_ldap', show_password_form: allow_admin_mode_password_authentication_for_web?, render_signup_link: false
- else
= render 'devise/shared/tabs_normal', tab_title: _('Enter Admin Mode'), render_signup_link: false
2019-12-21 20:55:43 +05:30
.tab-content
2020-05-24 23:13:21 +05:30
- if allow_admin_mode_password_authentication_for_web? || ldap_sign_in_enabled? || crowd_enabled?
= render 'admin/sessions/signin_box'
2020-01-01 13:55:28 +05:30
2020-05-24 23:13:21 +05:30
-# Show a message if none of the mechanisms above are enabled
- if !allow_admin_mode_password_authentication_for_web? && !ldap_sign_in_enabled? && !omniauth_enabled?
.prepend-top-default.center
= _('No authentication methods configured.')
2020-01-01 13:55:28 +05:30
2020-05-24 23:13:21 +05:30
- if omniauth_enabled? && button_based_providers_enabled?
.clearfix
= render 'devise/shared/omniauth_box', hide_remember_me: true