Sha256: 75c73530ebc090b0a652c76246e40be9dbd5ca0593a973101eaf3cf66bb56a83
Contents?: true
Size: 1.83 KB
Versions: 34
Compression:
Stored size: 1.83 KB
Contents
.panel %h3= "Order ##{order.to_param} Details" .panel_contents .attributes_table %table %tbody %tr %th order %td= "##{order.to_param}" %tr %th buyer %td= link_to order.user, admin_user_path(order.user) %tr %th purchase state %td= order.purchase_state - if order.purchased? %tr %th purchased %td= order.purchased_at.strftime("%Y-%m-%d %H:%M") - if order.billing_address.present? %tr %th billing address %td= order.billing_address.to_html - if order.shipping_address.present? %tr %th shipping address %td= order.shipping_address.to_html .panel %h3 Order Items .panel_contents .attributes_table - has_seller = order.purchased?(:stripe_connect) %table.table %thead %tr %th Items %th Price - if has_seller %th Seller %tbody - order.order_items.each do |item| %tr %td - if item.quantity > 1 = "#{item.quantity}x " = item.title %td= price_to_currency(item.subtotal) - if has_seller %td= link_to item.seller.user, admin_user_path(item.seller.user) %tfoot %tr %th Subtotal %td= price_to_currency(order.subtotal) %tr %th Tax %td= price_to_currency(order.tax) %tr %th Total %td= price_to_currency(order.total) - if order.payment.present? .panel %h3 Payment .panel_contents .attributes_table = order_payment_to_html(order) rescue order.payment
Version data entries
34 entries across 34 versions & 1 rubygems