Sha256: dd1603452abe385fe0f416a74263957fcfe172dc750f63c0eb3fd66c3e4c7f0f

Contents?: true

Size: 1.25 KB

Versions: 19

Compression:

Stored size: 1.25 KB

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_account_path %></p>

<% end %>

<%= hook :account_my_orders do %>

<h2><%= t("my_orders") %></h2>
<% if @orders.present? %>
  <table class="order-summary" width="545">
    <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><%=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 />

<% end %>

Version data entries

19 entries across 19 versions & 7 rubygems

Version Path
apispree_auth-0.0.0 app/views/users/show.html.erb
My-Commerce_auth-1.1.0 app/views/users/show.html.erb
My-Commerce_auth-1.0.0 app/views/users/show.html.erb
MyCommerceapi-1.0.0 auth/app/views/users/show.html.erb
MyCommerce-0.0.3 auth/app/views/users/show.html.erb
rfcommerce_auth-0.0.3 app/views/users/show.html.erb
spree_auth-0.60.6 app/views/users/show.html.erb
spree_auth-0.60.5 app/views/users/show.html.erb
spree_auth-0.60.4 app/views/users/show.html.erb
spree_auth-0.60.3 app/views/users/show.html.erb
spree_auth-0.60.2 app/views/users/show.html.erb
spree_bushido_auth-0.80.28 app/views/users/show.html.erb
spree_bushido_auth-0.80.27 app/views/users/show.html.erb
spree_bushido_auth-0.80.26 app/views/users/show.html.erb
spree_bushido_auth-0.80.25 app/views/users/show.html.erb
spree_bushido_auth-0.80.24 app/views/users/show.html.erb
spree_bushido_auth-0.60.1 app/views/users/show.html.erb
spree_auth-0.60.1 app/views/users/show.html.erb
spree_auth-0.60.0 app/views/users/show.html.erb