mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
.darkswarm
|
|
.row
|
|
%h1= accurate_title
|
|
.account-summary{"data-hook" => "account_summary"}
|
|
%dl#user-info
|
|
%dt= t(:email)
|
|
%dd
|
|
= @user.email
|
|
(#{link_to t(:edit), spree.edit_account_path})
|
|
.account-my-orders{"data-hook" => "account_my_orders"}
|
|
%h3= t(:my_orders)
|
|
- if @orders.present?
|
|
%table.order-summary
|
|
%thead
|
|
%tr
|
|
%th.order-number= t(:order_number)
|
|
%th.order-date= t(:order_date)
|
|
%th.order-status= t(:status)
|
|
%th.order-payment-state= t(:payment_state)
|
|
%th.order-shipment-state= t(:shipment_state)
|
|
%th.order-total= t(:total)
|
|
%tbody
|
|
- @orders.each do |order|
|
|
%tr{class: cycle('even', 'odd')}
|
|
%td.order-number= link_to order.number, order_url(order)
|
|
%td.order-date= l order.completed_at.to_date
|
|
%td.order-status= t(order.state).titleize
|
|
%td.order-payment-state= t("payment_states.#{order.payment_state}") if order.payment_state
|
|
%td.order-shipment-state= t("shipment_states.#{order.shipment_state}") if order.shipment_state
|
|
%td.order-total= money order.total
|
|
- else
|
|
%p= t(:you_have_no_orders_yet)
|
|
%br/
|