<% if !current_user || !current_user.user_authentications %>

Sign in through one of these services:

<% end %> <% AuthenticationMethod.where(:environment => ::Rails.env).each do |user| %> <%= link_to(image_tag("social/#{user.preferred_provider}_32.png", :size => "32x32", :alt => "#{user.preferred_provider}"), user_authentication_omniauth_authorize_path(user.preferred_provider.to_sym), :title => "Sign in with #{user.preferred_provider}") if user.active %> <% end %>