Sha256: 68c86c87705971912ae1f678cfba4aad6cbe7aa35fe258da7fd294103f716a39

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

Contents

= card('Ring Payment') do
  - ring = ring_payment.ring

  %table.table.table-sm
    %tbody
      - if request.path.start_with?('/admin')
        %tr
          %th Ordered by
          %td
            - url = (polymorphic_admin_path(ring_payment.owner) rescue "/admin/users/#{ring_payment.owner.to_param}/edit")
            = link_to(ring_payment.owner, url)
      - else
        %tr
          %th Ordered by
          %td= ring_payment.owner

      - if ring_payment.orders.present?
        %tr
          %th Order
          %td
            - ring_payment.orders.each do |order|
              = link_to(order, effective_orders.order_path(order))

      - if ring_payment.was_submitted?
        %tr
          %th Submitted
          %td= ring_payment.submitted_at.strftime('%F')

        %tr
          %th Issued
          %td= ring.issued_at&.strftime('%F') || 'Not Issued'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_products-0.0.2 app/views/effective/ring_payments/_summary.html.haml