Sha256: e292a7464a69a6cc13fc470a2ec413af6a7ac717bba6fb67ac6a02b4139fd611

Contents?: true

Size: 631 Bytes

Versions: 9

Compression:

Stored size: 631 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
            = (order.purchased? ? 'Purchased' : 'Created')
            = (order.purchased_at || order.created_at).strftime("%F %H:%M")
          %td= order_summary(order)
          %td
            - if order.pending? || order.confirmed?
              = link_to_checkout(order: order)
            - else
              = link_to 'View', effective_orders.order_path(order)
- else
  %p No previous orders.

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_orders-6.5.8 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.7 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.6 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.5 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.4 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.2 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.0 app/views/effective/orders/_orders_table.html.haml