Sha256: cfbb8df224a3c38d354619d298ac2cbe1de2fc3b1b2a7f1de59c5cd8d95b2f0d

Contents?: true

Size: 1.28 KB

Versions: 19

Compression:

Stored size: 1.28 KB

Contents

<h3><%= accurate_title %></h3>

<div data-hook="account_summary">
  <dl id="user-info">
    <dt><%= t(:email) %></dt>
    <dd><%= @user.email %> (<%= link_to t(:edit), spree.edit_account_path %>)</dd>
  </dl>
</div>

<div data-hook="account_my_orders">

  <h3><%= t(:my_orders) %></h3>
  <% if @orders.present? %>
    <table class="order-summary">
      <thead>
        <tr>
          <th><%= t(:order_number) %></th>
          <th><%= t(:order_date) %></th>
          <th><%= t(:status) %></th>
          <th><%= t(:payment_state) %></th>
          <th><%= t(:shipment_state) %></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><%= l order.created_at.to_date %></td>
          <td><%= t(order.state).titleize %></td>
          <td><%= t("payment_states.#{order.payment_state}") if order.payment_state %></td>
          <td><%= t("shipment_states.#{order.shipment_state}") if order.shipment_state %></td>
          <td><%= number_to_currency order.total %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  <% else %>
    <p><%= t(:you_have_no_orders_yet) %></p>
  <% end %>
  <br />

</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_auth-1.1.5 app/views/spree/users/show.html.erb
spree_auth-1.0.7 app/views/spree/users/show.html.erb
spree_auth-1.1.4 app/views/spree/users/show.html.erb
spree_auth-1.1.3 app/views/spree/users/show.html.erb
spree_auth-1.0.6 app/views/spree/users/show.html.erb
spree_auth-1.0.5 app/views/spree/users/show.html.erb
spree_auth-1.1.2 app/views/spree/users/show.html.erb
spree_auth-1.1.2.rc1 app/views/spree/users/show.html.erb
spree_auth-1.1.1 app/views/spree/users/show.html.erb
spree_auth-1.1.0 app/views/spree/users/show.html.erb
spree_auth-1.0.4 app/views/spree/users/show.html.erb
spree_auth-1.1.0.rc2 app/views/spree/users/show.html.erb
spree_auth-1.1.0.rc1 app/views/spree/users/show.html.erb
spree_auth-1.0.3 app/views/spree/users/show.html.erb
spree_auth-1.0.2 app/views/spree/users/show.html.erb
spree_auth-1.0.1 app/views/spree/users/show.html.erb
spree_auth-1.0.0 app/views/spree/users/show.html.erb
spree_auth-1.0.0.rc4 app/views/spree/users/show.html.erb
spree_auth-1.0.0.rc3 app/views/spree/users/show.html.erb