Commit 7a53215d75f239212037c9e8052e0bcc9310d1d1
1 parent
23b3f051
Exists in
master
and in
4 other branches
Hide sign-in bottom block if no providers
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/views/devise/sessions/_oauth_providers.html.haml
1 | -- if enabled_oauth_providers.present? | |
1 | +- providers = (enabled_oauth_providers - [:ldap]) | |
2 | +- if providers.present? | |
2 | 3 | %hr |
3 | 4 | %div{:'data-no-turbolink' => 'data-no-turbolink'} |
4 | 5 | %span Sign in with: |
5 | - - (enabled_oauth_providers - [:ldap]).each do |provider| | |
6 | + - providers.each do |provider| | |
6 | 7 | %span |
7 | 8 | - if default_providers.include?(provider) |
8 | 9 | = link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider) | ... | ... |