提交 7a53215d 编写于 作者: D Dmitriy Zaporozhets

Hide sign-in bottom block if no providers

上级 23b3f051
- 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册