Sha256: 58f81821331c3aecf6e1d019b991d9e3e57ef5aacdda9e8c8cf73507b13a5f5e
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
<table style="border-collapse:collapse;table-layout:fixed;margin:0px;padding:0px;border-width:0px"><%= ("<col width='64px'/>" * PROVIDERS.size).html_safe %> <tr> <% 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 %> <td style="white-space:nowrap;text-align:center;border-width:0px"> <a href="<%= SITE_URL %>/<%= OmniAuth.config.path_prefix.split('/').last.to_s %>/<%= provider.to_s.downcase %><%= url_params %>" class="noicon"><%= image_tag "authbuttons/#{image_name}_64.png", :align => 'absmiddle', :size => "64x64", :alt => provider_name %></a> <br /><br /> <%= provider_name %> </td> <% end %> </tr> </table>
Version data entries
4 entries across 4 versions & 1 rubygems