Sha256: 2a51d9f55b733092cbbb897ca7457e722579ae366888fc9f6ee2c503a2f05e66

Contents?: true

Size: 1.31 KB

Versions: 10

Compression:

Stored size: 1.31 KB

Contents

<tr class="<%= cycle('', 'alt') %> line-item">
  <td 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 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">
        <%= variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) %><br />
      </span>
    <% end %>
    <%= truncate(variant.product.description, :length => 100, :omission => "...") %>
  </td>
  <td data-hook="cart_item_price">
    <%= number_to_currency line_item.price %>
  </td>
  <td data-hook="cart_item_quantity">
    <%= item_form.number_field :quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
  </td>
  <td data-hook="cart_item_total">
    <%= number_to_currency(line_item.price * line_item.quantity) unless line_item.quantity.nil? %>
  </td>
  <td 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

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/orders/_line_item.html.erb
spree_core-1.0.6 app/views/spree/orders/_line_item.html.erb
spree_core-1.1.1 app/views/spree/orders/_line_item.html.erb
spree_core-1.1.0 app/views/spree/orders/_line_item.html.erb
spree_core-1.0.4 app/views/spree/orders/_line_item.html.erb
spree_core-1.1.0.rc2 app/views/spree/orders/_line_item.html.erb
spree_core-1.1.0.rc1 app/views/spree/orders/_line_item.html.erb
spree_core-1.0.3 app/views/spree/orders/_line_item.html.erb
spree_core-1.0.2 app/views/spree/orders/_line_item.html.erb
spree_core-1.0.1 app/views/spree/orders/_line_item.html.erb