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.2.4 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.2.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.2.2 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.2.1 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.2.0 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.17 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.16 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.15 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.14 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.13 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.12 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.10 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.9 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.8 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.7 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.6 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.5 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.4 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.3 app/views/effective/orders/_orders_table.html.haml
effective_orders-2.1.2 app/views/effective/orders/_orders_table.html.haml