Sha256: 8e19167049743b32ad332d62e70559b1b0fb2974f199caf84bf66193e1c03002

Contents?: true

Size: 1.21 KB

Versions: 2

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 "contour/#{image_name}_64.png", :align => 'absmiddle', :size => "64x64", :alt => provider_name %></a>
        <br /><br />
        <%= provider_name %>
      </td>
    <% end %>
  </tr>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contour-0.4.0 app/views/contour/authentications/_index.html.erb
contour-0.3.2 app/views/contour/authentications/_index.html.erb