<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>

<h1> Your current order </h1>
<table class="order-items">
  <% @order.order_items.each do |cart_item| %>
  <tr>
    <td><%= image_tag cart_item.item.image.url(:user_thumb) %></td>
    <td><%= link_to cart_item.item.title, item_path(cart_item.item) %></td>
    <td><%= number_to_currency(cart_item.item.price) %></td>
    <td><%= cart_item.quantity %></td>
    <td><%= button_to 'Remove From Cart', cart_item ,method: :delete %></td>
  <% end %>

  <tr class="total_line">
    <td> Total </td>
    <td><%= number_to_currency(@order.total_price) %></td>
  </tr>
</table>
<%= button_to 'Empty cart', @order, method: :delete,
  data: { confirm: 'Are you sure?' } %>

<%- model_class = Item -%>
<div class="page-header">
  <h1> Your Order </h1>
  <% if notice %>
  <p id="notice"><%= notice %></p>
  <% end %>
</div>

<table class="table table-striped order-items ">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:image) %></th>
      <th><%= model_class.human_attribute_name(:title) %></th>
      <th><%= model_class.human_attribute_name(:price) %></th>
      <th><%= model_class.human_attribute_name(:quantity) %></th>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
  <% @order.order_items.each do |cart_item| %>
    <tr>
      <td><%= image_tag cart_item.item.image.url(:user_thumb) %></td>
      <td><%= link_to cart_item.item.title, item_path(cart_item.item) %></td>
      <td><%= number_to_currency(cart_item.item.price) %></td>
      <td><%= cart_item.quantity %></td>
      <td><%= button_to 'Remove From Cart', cart_item ,method: :delete %></td>
    <% end %>

    <tr class="total_line">
      <td> Total </td>
      <td><%= number_to_currency(@order.total_price) %></td>
    </tr>
  </tbody>
</table>
<%= button_to 'Empty cart', @order, method: :delete,
  data: { confirm: 'Are you sure?' } %>

Make cart look as pretty as the rest of the site
Make cart look as pretty as the rest of the site
