Sha256: 0ee29f47650e8c8fb5fe9aacca278164628d18ba96b32b8073f8ef083c56d9ad

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

<div data-hook="account_my_favorite_products" class="account-my-favorite-products commonform">
  <h3><%= Spree.t(:my_favorite_products) %></h3>
  <% if @favorite_products.present? %>
    <table class="favorite-products order-summary">
      <thead>
      <tr>
        <th class="favorite-product-image"><%= Spree.t(:product_image) %></th>
        <th class="favorite-product-name"><%= Spree.t(:product_name) %></th>
        <th class="favorite-product-action">Action</th>        
      </tr>
      </thead>
      <tbody>
      <% @favorite_products.each do |product| %>
        <tr class="<%= cycle('even', 'odd') %>" id="favorite_product_<%= product.id %>">
          <td class="favorite-product-image"><%= link_to small_image(product), product_path(product) %></td>
          <td class="favorite-product-name"><%= product.name %></td>
          <td class="favorite-product-remove"><%= link_to 'Remove', favorite_product_path(:id => product.id), :method => :delete, :remote => true %>
        </tr>
      <% end %>
      </tbody>
    </table>
  <% else %>
    <p><%= Spree.t(:you_have_no_favorite_products_yet) %></p>
  <% end %>
  
  <%= paginate @favorite_products %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_favorite_products-2.2.2 app/views/spree/favorite_products/index.html.erb
spree_favorite_products-2.0.2 app/views/spree/favorite_products/index.html.erb
spree_favorite_products-2.2.0 app/views/spree/favorite_products/index.html.erb
spree_favorite_products-2.0.1 app/views/spree/favorite_products/index.html.erb
spree_favorite_products-1.0.1 app/views/spree/favorite_products/index.html.erb