Commit 784cb886cf63ba956d6ae93a92d538fd200b5463

Authored by Dmitriy Zaporozhets
1 parent 313595e1

Sign in screen: removed hr, added clearfix

Showing 1 changed file with 6 additions and 5 deletions   Show diff stats
app/views/devise/sessions/new.html.haml
... ... @@ -14,8 +14,9 @@
14 14 = f.submit "Sign in", :class => "primary btn wide"
15 15 .right
16 16 = render :partial => "devise/shared/links"
17   - - if devise_mapping.omniauthable?
18   - %hr/
19   - - resource_class.omniauth_providers.each do |provider|
20   - %span
21   - = link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
  17 + .clearfix
  18 + - if devise_mapping.omniauthable? && resource_class.omniauth_providers.present?
  19 + %div
  20 + - resource_class.omniauth_providers.each do |provider|
  21 + %span
  22 + = link_to authbutton(provider, 32), omniauth_authorize_path(resource_name, provider)
... ...