app/views/orders/_line_item.html.erb in spree-0.7.1 vs app/views/orders/_line_item.html.erb in spree-0.8.0
- old
+ new
@@ -1,21 +1,20 @@
-<% variant = line_item.variant %>
-<tr class="<%= cycle('even', 'odd') %>">
- <td width="100">
+<% variant = line_item.variant -%>
+<tr class="<%= cycle('', 'alt') %>">
+ <td>
<%= small_image(line_item.variant.product) %>
</td>
- <td valign="top">
- <%= link_to variant.product.name, product_path(variant.product) %>
- <%= variant_options variant %><br/>
+ <td>
+ <h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
+ <%= variant_options variant %>
<%= truncate(variant.product.description, :length => 100, :omission => "...") %>
-
</td>
- <td valign="top" width="75">
- <%= product_price(line_item) %>
- </td>
- <td valign="top" width="50">
- <%= f.text_field :quantity, :size => 3 %>
- </td>
- <td valign="top" width="75">
- <%= format_price(product_price(line_item, :format_as_currency => false) * line_item.quantity) unless line_item.quantity.nil? %>
- </td>
+ <td>
+ <%= product_price(line_item) %>
+ </td>
+ <td>
+ <%= f.text_field :quantity, :size => 3 %>
+ </td>
+ <td>
+ <%= format_price(product_price(line_item, :format_as_currency => false) * line_item.quantity) unless line_item.quantity.nil? %>
+ </td>
</tr>