2020-07-28 23:09:34 +05:30
- page_title _("Sign in")
2021-01-29 00:20:46 +05:30
- content_for :page_specific_javascripts do
2022-08-13 15:12:31 +05:30
= render "layouts/google_tag_manager_head"
2021-11-18 22:05:49 +05:30
= render "layouts/one_trust"
2022-04-04 11:22:00 +05:30
= render "layouts/bizible"
2022-08-13 15:12:31 +05:30
= render "layouts/google_tag_manager_body"
2017-08-17 22:00:37 +05:30
2019-03-02 22:35:43 +05:30
#signin-container
2019-12-26 22:10:19 +05:30
- if any_form_based_providers_enabled?
2021-01-29 00:20:46 +05:30
= render 'devise/shared/tabs_ldap', render_signup_link: false
2016-11-03 12:29:30 +05:30
.tab-content
2019-12-26 22:10:19 +05:30
- if password_authentication_enabled_for_web? || ldap_sign_in_enabled? || crowd_enabled?
2016-11-03 12:29:30 +05:30
= render 'devise/shared/signin_box'
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
-# Show a message if none of the mechanisms above are enabled
2019-12-26 22:10:19 +05:30
- if !password_authentication_enabled_for_web? && !ldap_sign_in_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
2015-04-26 12:48:37 +05:30
%div
2021-04-29 21:17:54 +05:30
= _('No authentication methods configured.')
2016-11-03 12:29:30 +05:30
2022-10-11 01:57:18 +05:30
- if Feature.enabled?(:restyle_login_page, @project)
%p.gl-px-5
= html_escape(s_("SignUp|By signing in you accept the %{link_start}Terms of Use and acknowledge the Privacy Policy and Cookie Policy%{link_end}.")) % { link_start: "<a href='#{terms_path}' target='_blank' rel='noreferrer noopener'>".html_safe,
link_end: '</a>'.html_safe }
2021-01-29 00:20:46 +05:30
- if allow_signup?
2022-08-27 11:52:29 +05:30
%p{ class: "gl-mt-3 #{'gl-text-center' if Feature.enabled?(:restyle_login_page, @project)}" }
2021-01-29 00:20:46 +05:30
= _("Don't have an account yet?")
2022-10-11 01:57:18 +05:30
= link_to _("Register now"), new_registration_path(:user, invite_email: @invite_email), data: { qa_selector: 'register_link' }
2016-11-03 12:29:30 +05:30
- if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
.clearfix
= render 'devise/shared/omniauth_box'