app/views/users/show.html.erb in spree-0.5.1 vs app/views/users/show.html.erb in spree-0.6.0
- old
+ new
@@ -1,11 +1,39 @@
-<h1><%= t("My Account") %></h1>
+<h1><%= t("my_account") %></h1>
<table>
<tr>
- <td><%= t("Email") %>:</td>
+ <td><%= t("email") %>:</td>
<td>
<%= @user.email %>
</td>
</tr>
</table>
-<br/>
-<%= link_to t('Edit'), edit_object_url %>
+<%= link_to t('edit'), edit_object_url %>
+
+
+<h1><%= t("my_orders") %></h1>
+
+
+<table class="order-summary" width="545">
+ <thead>
+ <tr>
+ <th><%= t("order_number") %></th>
+ <th><%= t("order_date") %></th>
+ <th><%= t("status") %></th>
+ <th><%= t("customer") %></th>
+ <th><%= t("total") %></th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @orders.each do |order| %>
+ <tr class="<%= cycle('even', 'odd') %>">
+ <td><%= link_to order.number, order_url(order) %></td>
+ <td><%=order.created_at.to_date%></td>
+ <td><%= t(order.state).titleize %></td>
+ <td><%= order.user.email if order.user %></td>
+ <td><%= number_to_currency order.total %></td>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
+
+<br />