Sha256: ebb17c4307e912996d328f28710e30cd267c826e3b7fb24061faa251664bb2e8

Contents?: true

Size: 747 Bytes

Versions: 19

Compression:

Stored size: 747 Bytes

Contents

%h1.effective-heading= @page_title

%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

19 entries across 19 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/views/effective/orders/my_sales.html.haml
effective_orders-3.2.2 app/views/effective/orders/my_sales.html.haml
effective_orders-3.2.1 app/views/effective/orders/my_sales.html.haml
effective_orders-3.2.0 app/views/effective/orders/my_sales.html.haml
effective_orders-3.1.7 app/views/effective/orders/my_sales.html.haml
effective_orders-3.1.6 app/views/effective/orders/my_sales.html.haml
effective_orders-3.1.4 app/views/effective/orders/my_sales.html.haml
effective_orders-3.1.3 app/views/effective/orders/my_sales.html.haml
effective_orders-3.1.0 app/views/effective/orders/my_sales.html.haml
effective_orders-3.0.4 app/views/effective/orders/my_sales.html.haml
effective_orders-3.0.3 app/views/effective/orders/my_sales.html.haml
effective_orders-3.0.2 app/views/effective/orders/my_sales.html.haml
effective_orders-3.0.1 app/views/effective/orders/my_sales.html.haml
effective_orders-3.0.0 app/views/effective/orders/my_sales.html.haml
effective_orders-2.2.4 app/views/effective/orders/my_sales.html.haml
effective_orders-2.2.3 app/views/effective/orders/my_sales.html.haml
effective_orders-2.2.2 app/views/effective/orders/my_sales.html.haml
effective_orders-2.2.1 app/views/effective/orders/my_sales.html.haml
effective_orders-2.2.0 app/views/effective/orders/my_sales.html.haml