Sha256: 1b7db93ee6671fc929e9edf260e9c98b6a907f2e603982c132d4d93119254b37

Contents?: true

Size: 1.34 KB

Versions: 6

Compression:

Stored size: 1.34 KB

Contents

<tr class="<%= cycle('', 'alt') %> line-item">
  <td class="cart-item-image" data-hook="cart_item_image">
    <% if variant.images.length == 0 %>
      <%= link_to small_image(variant.product), variant.product %>
    <% else %>
      <%= link_to image_tag(variant.images.first.attachment.url(:small)), variant.product %>
    <% end %>
  </td>
  <td class="cart-item-description" data-hook="cart_item_description">
    <h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
    <%= variant.options_text %>
    <% if @order.insufficient_stock_lines.include? line_item %>
      <span class="out-of-stock">
        <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br />
      </span>
    <% end %>
    <%= line_item_description(variant) %>
  </td>
  <td class="cart-item-price" data-hook="cart_item_price">
    <%= line_item.single_money.to_html %>
  </td>
  <td class="cart-item-quantity" data-hook="cart_item_quantity">
    <%= item_form.number_field :quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
  </td>
  <td class="cart-item-total" data-hook="cart_item_total">
    <%= line_item.display_amount.to_html unless line_item.quantity.nil? %>
  </td>
  <td class="cart-item-delete" data-hook="cart_item_delete">
    <%= link_to image_tag('icons/delete.png'), '#', :class => 'delete', :id => "delete_#{dom_id(line_item)}" %>
  </td>
</tr>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_frontend-2.0.4 app/views/spree/orders/_line_item.html.erb
spree_frontend-2.0.3 app/views/spree/orders/_line_item.html.erb
spree_frontend-2.0.2 app/views/spree/orders/_line_item.html.erb
spree_frontend-2.0.1 app/views/spree/orders/_line_item.html.erb
spree_frontend-2.0.0 app/views/spree/orders/_line_item.html.erb
spree_frontend-2.0.0.rc1 app/views/spree/orders/_line_item.html.erb