Sha256: 6864693efaafc80865a59955e00c03fc4f7b63c2bb4adfafc03ce003de5dce01
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
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 %> <% if false %> <div style="float:right;margin-right:15px;width:32px;position:relative"> <div style="position:absolute;top:-4px;"> <% end %> <div style="float:right;top:-4px;position:relative;height:20px;margin-right:15px"> <a href="<%#= Contour.application_site_url.to_s + "/" %><%= 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> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems