Sha256: 1fcebf3fa70f0536f4794773620432b11f8b148fdf9109196126215324f55483

Contents?: true

Size: 753 Bytes

Versions: 20

Compression:

Stored size: 753 Bytes

Contents

%h2.effective-orders-page-title My Sales

%table.table
  %thead
    %tr
      %th Product
      %th Order
      %th Buyer
      %th Date of Sale
      %th Description
  %tbody
    - (@order_items || {}).group_by(&:purchasable).each do |purchasable, order_items|
      - order_items.each_with_index do |order_item, x|
        %tr
          - if x == 0
            %td{:rowspan => order_items.size}
              = link_to purchasable.title, acts_as_purchasable_path(purchasable)

          %td= "##{order_item.order.to_param}"
          %td= order_item.order.try(:user).try(:to_s)
          %td= order_item.order.purchased_at.strftime("%Y-%m-%d %H:%M")
          %td= order_item_summary(order_item)

- unless @order_items.present?
  %p You have no sales

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-1.8.1 app/views/effective/orders/my_sales.html.haml
effective_orders-1.8.0 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.5 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.4 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.3 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.2 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.1 app/views/effective/orders/my_sales.html.haml
effective_orders-1.7.0 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.6 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.5 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.4 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.3 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.1 app/views/effective/orders/my_sales.html.haml
effective_orders-1.6.0 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.9 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.8 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.7 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.5 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.4 app/views/effective/orders/my_sales.html.haml
effective_orders-1.5.3 app/views/effective/orders/my_sales.html.haml