Sha256: af5bb8bfca62afe26973aedb50a9f4b72dae1702a49823218f189f90677c1002

Contents?: true

Size: 646 Bytes

Versions: 24

Compression:

Stored size: 646 Bytes

Contents

%table.table
  %thead
    %tr
      %th Order
      %th Date
      %th Description
      %th
  %tbody
    - orders.each do |order|
      %tr
        %td ##{order.to_param}
        %td
          - if order.purchased?
            Purchased
            = order.purchased_at.strftime("%Y-%m-%d %H:%M")
          - else
            Created
            = order.created_at.strftime("%Y-%m-%d %H:%M")
        %td= order_summary(order)
        %td
          - if order.pending?
            = link_to_checkout(order: order)
          - else
            = link_to 'View', effective_orders.order_path(order)

- unless orders.present?
  %p You have no orders

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
effective_orders-2.1.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.0.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.0.0 app/views/effective/orders/_orders_table.html.haml