Sha256: 016451fa83080a0491116f0ef73971fe5b506f1aa47ef130b1b156eacda4cdcf

Contents?: true

Size: 697 Bytes

Versions: 14

Compression:

Stored size: 697 Bytes

Contents

- if orders.present?
  %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)
- else
  %p No previous orders.

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.2.2 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.2.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.2.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.1.7 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.1.6 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.1.4 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.1.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.1.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.0.4 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.0.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.0.2 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.0.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-3.0.0 app/views/effective/orders/_orders_table.html.haml