Sha256: f1c24e2875938919bd8815608531bcd630070058f78978b66c298bed25be6449

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

<% if defined? retailers %>  
  <div class="retailers">
    <h3>Find <%= Spree::Config[:site_name] %> at the following retail locations:</h3>
    
    <% retailers.group_by(&:country).each do |country, country_retailers| %>
      
      <h3><%= country %></h3>
      
      <% if country == "United States" %>
        <div class="state-nav">
          <%= state_nav_helper(country_retailers) %>
        </div>
      <% end %>
      
      <% country_retailers.group_by(&:state).each do |state, state_retailers| %>
        <hr/>
        <h4 id="<%= state.downcase %>"><%= @states[state] %></h4>
        <%= render :partial => 'retailer', :collection => state_retailers %>
      <% end %>
      
    <% end %>
    
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_retailers-1.0.0.0 app/views/spree/retailers/_list.html.erb
spree_retailers-0.70.0.0 app/views/retailers/_list.html.erb