Sha256: c55f51d42813ff3dc466fe163780597cb2b41edabd459eb48be7ff0647c4c223
Contents?: true
Size: 1015 Bytes
Versions: 7
Compression:
Stored size: 1015 Bytes
Contents
<% PROVIDERS.each do |provider| %> <% url_params = (provider == :google_apps) ? '?domain=gmail.com' : '' %> <% if provider == :open_id %> <% provider_name = 'OpenID' %> <% image_name = 'openid' %> <% elsif provider == :linked_in %> <% provider_name = 'LinkedIn' %> <% image_name = 'linkedin' %> <% elsif [:LDAP, :CAS].include?(provider) %> <% provider_name = provider.to_s.upcase %> <% image_name = provider.to_s.downcase %> <% else %> <% provider_name = provider.to_s.titleize %> <% image_name = provider.to_s.downcase %> <% end %> <li class="parent li_right" style="top:-4px;height:20px;"> <%# margin-right:15px;padding-left:0px;padding-right:0px %> <a href="<%= request.script_name %><%= "/" + OmniAuth.config.path_prefix.split('/').last.to_s %><%= "/" + provider.to_s.downcase %><%= url_params %>" class="noicon"> <%= image_tag "contour/#{image_name}_32.png", :align => 'absmiddle', :height => "28px", :title => provider_name %> </a> </li> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems