Sha256: 036d6e9dde39aded8aeded7b9d7c6de0434d55995318a9c94b00853994b7fd6f

Contents?: true

Size: 973 Bytes

Versions: 9

Compression:

Stored size: 973 Bytes

Contents

<h1><%= t("my_account") %></h1>

<%= hook :account_summary do %>

<table>
  <tr>
    <td><%= t("email") %>:</td>
    <td>
      <%= @user.email %>
    </td>
  </tr>
</table>
<p><%= link_to t('edit'), edit_object_url %></p>

<% end %>

<%= hook :account_my_orders do %>

<h2><%= t("my_orders") %></h2>
 
<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 />

<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/users/show.html.erb
spree_core-0.40.4 app/views/users/show.html.erb
spree_core-0.40.3 app/views/users/show.html.erb
spree_core-0.40.2 app/views/users/show.html.erb
spree_core-0.40.1 app/views/users/show.html.erb
spree_core-0.40.0 app/views/users/show.html.erb
spree_core-0.30.1 app/views/users/show.html.erb
spree_core-0.30.0 app/views/users/show.html.erb
spree_core-0.30.0.beta1 app/views/users/show.html.erb