Sha256: b76c0543d5c3035b9673396433dd688caca45014a106fcff7aa6b80479c43766

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

<h1><%= accurate_title %></h1>

<div data-hook="account_summary" class="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" class="account-my-orders">

  <h3><%= t(:my_orders) %></h3>
  <% if @orders.present? %>
    <table class="order-summary">
      <thead>
      <tr>
        <th class="order-number"><%= t(:order_number) %></th>
        <th class="order-date"><%= t(:order_date) %></th>
        <th class="order-status"><%= t(:status) %></th>
        <th class="order-payment-state"><%= t(:payment_state) %></th>
        <th class="order-shipment-state"><%= t(:shipment_state) %></th>
        <th class="order-total"><%= t(:total) %></th>
      </tr>
      </thead>
      <tbody>
      <% @orders.each do |order| %>
        <tr class="<%= cycle('even', 'odd') %>">
          <td class="order-number"><%= link_to order.number, order_url(order) %></td>
          <td class="order-date"><%= l order.created_at.to_date %></td>
          <td class="order-status"><%= t(order.state).titleize %></td>
          <td class="order-payment-state"><%= t("payment_states.#{order.payment_state}") if order.payment_state %></td>
          <td class="order-shipment-state"><%= t("shipment_states.#{order.shipment_state}") if order.shipment_state %></td>
          <td class="order-total"><%= money order.total %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  <% else %>
    <p><%= t(:you_have_no_orders_yet) %></p>
  <% end %>
  <br />

</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_auth_devise-1.3.1 app/views/spree/users/show.html.erb
spree_auth_devise-1.2.0 app/views/spree/users/show.html.erb
spree_auth_devise-1.0.1 app/views/spree/users/show.html.erb
spree_auth_devise-1.0.0 app/views/spree/users/show.html.erb