• <% if variant.images.length == 0 %> <%= link_to mini_image(variant.product), variant.product %> <% else %> <%= link_to image_tag(variant.images.first.attachment.url(:mini)), variant.product %> <% end %>
    <%= link_to variant.product.name, product_path(variant.product) %> <%= "x#{line_item.quantity}" -%> <%= variant.options_text %> <% if current_order.insufficient_stock_lines.include? line_item %> <%= variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) %>
    <% end %>
    <%= number_to_currency(line_item.price * line_item.quantity) unless line_item.quantity.nil? %>
    <%= item_form.hidden_field :quantity, :min => 0, :class => "line_item_quantity" %>
    <%= link_to t("delete"), '#', :class => 'delete', :id => "delete_#{dom_id(line_item)}" %>