Sha256: b5f1fe8dd754e248e2baa2f2920b2f50d4502520050678c2bbb9af9f04f2e50b

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 KB

Contents

<tr>
  <td class="muted center_text">
    <%- locals = {:item_form => item_form, :variant => variant, :line_item => line_item} %>
    <%= hook :cart_item_image, locals do %>
      <% if variant.images.length == 0 %>
        <%= small_image(variant.product) %>
      <% else %>
        <%=  image_tag variant.images.first.attachment.url(:small)   %>
      <% end %>
    <% end %>
  </td>
  <td>
    <%= hook :cart_item_description, locals do %>
      <h4><%= link_to variant.product.name,  product_path(variant.product) %></h4>
      <% if variant %>
        <p><%= variant_options variant %></p>
        <% if variant.product.description %>
          <p><%= truncate(variant.product.description, :length => 100, :omission => "...") %></p>
        <% end %>
      <% end %>
    <% end %>
  </td>
  <td>
    <%= hook :cart_item_price, locals do %>
      <%=  product_price(line_item) %>
    <% end %>
  </td>
  <td>
    <%= hook :cart_item_quantity, locals do %>
      <%= item_form.text_field :quantity, :class => "input-mini line_item_quantity" %>
    <% end %>
  </td>

  <td>
    <%= hook :cart_item_total, locals do %>
      <%= format_price(product_price(line_item, :format_as_currency => false) * line_item.quantity) unless line_item.quantity.nil? %>
    <% end %>
  </td>
  <td>
    <%= hook :cart_item_delete, locals do %>
      <%= link_to(image_tag('/images/admin/icons/delete.png'), '#', :class => 'delete', :onclick => "") %>
    <% end %>
  </td>

</tr>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 app/views/orders/_line_item.html.erb
synergy_bootstrap_theme-0.0.3 app/views/orders/_line_item.html.erb
synergy_bootstrap_theme-0.0.2 app/views/orders/_line_item.html.erb
synergy_bootstrap_theme-0.0.1 app/views/orders/_line_item.html.erb