Sha256: 9cfb788bf0a06f4257fc1fbd7583c10229f39dfb778fee921dbc696417706505
Contents?: true
Size: 1.95 KB
Versions: 1
Compression:
Stored size: 1.95 KB
Contents
<div class="account-summary"> <div class="account-summary__profile"> <h2><%= I18n.t('spree.email') %></h2> <p><%= @user.email %> (<%= link_to I18n.t('spree.edit'), spree.edit_account_path %>)</p> </div> <div class="account-summary__orders"> <h2><%= I18n.t('spree.my_orders') %></h2> <% if @orders.present? %> <% @orders.each do |order| %> <dl class="account-order"> <div class="account-order__detail"> <dt><%= I18n.t(:number, scope: 'activerecord.attributes.spree/order') %></dt> <dd><%= link_to order.number, order_url(order) %></dd> </div> <div class="account-order__detail"> <dt><%= I18n.t('spree.date') %></dt> <dd><%= l order.completed_at.to_date %></dd> </div> <div class="account-order__detail"> <dt><%= I18n.t('spree.status') %></dt> <dd><%= I18n.t("spree.order_state.#{order.state}").titleize %></dd> </div> <div class="account-order__detail"> <dt><%= I18n.t('spree.payment_state') %></dt> <dd><%= I18n.t("spree.payment_states.#{order.payment_state}").titleize if order.payment_state %></dd> </div> <div class="account-order__detail"> <dt><%= I18n.t('spree.shipment_state') %></dt> <dd><%= I18n.t("spree.shipment_states.#{order.shipment_state}").titleize if order.shipment_state %></dd> </div> <div class="account-order__detail"> <dt><%= I18n.t('spree.total') %></dt> <dd><%= order.display_total %></dd> </div> </dl> <% end %> <% else %> <p><%= I18n.t('spree.you_have_no_orders_yet') %></p> <% end %> </div> <%= form_with(url: spree.logout_path, method: Devise.sign_out_via, local: true) do %> <%= render( "spree/components/buttons/button_primary", content: I18n.t('spree.logout'), type: :submit ) %> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | lib/views/auth/spree/users/show.html.erb |