Skip to content
Snippets Groups Projects
Commit 7a53215d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Hide sign-in bottom block if no providers

parent 23b3f051
No related branches found
No related tags found
No related merge requests found
- if enabled_oauth_providers.present?
- providers = (enabled_oauth_providers - [:ldap])
- if providers.present?
%hr
%div{:'data-no-turbolink' => 'data-no-turbolink'}
%span Sign in with:  
- (enabled_oauth_providers - [:ldap]).each do |provider|
- providers.each do |provider|
%span
- if default_providers.include?(provider)
= link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment