Sha256: 96ae25c7499422047c2191c3eab2faa292f6c377794b970861b1d4437fcc866b

Contents?: true

Size: 754 Bytes

Versions: 47

Compression:

Stored size: 754 Bytes

Contents

- if orders.present?
  %table.table
    %thead
      %tr
        %th Order
        %th Buyer
        %th Date
        %th Description
        %th
    %tbody
      - orders.each do |order|
        %tr
          %td ##{order.to_param}
          %td
            = [order.organization, order.user].compact.join('<br>').html_safe
          %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

47 entries across 47 versions & 1 rubygems

Version Path
effective_orders-6.7.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.7.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.6.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.6.2 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.6.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.6.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-6.5.9 app/views/effective/orders/_orders_table.html.haml