Sha256: 0e728b7863bc0d1e68df17e93f365a8da9d76f6359c8996d2d8c698518b0cb69

Contents?: true

Size: 860 Bytes

Versions: 12

Compression:

Stored size: 860 Bytes

Contents

- stamp = stamp_wizard.stamp

= card(et(stamp)) do
  %table.table.table-sm
    %tbody
      - if request.path.start_with?('/admin')
        %tr
          %th Owner
          %td
            - url = (polymorphic_admin_path(stamp_wizard.owner) rescue "/admin/users/#{stamp_wizard.owner.to_param}/edit")
            = link_to(stamp_wizard.owner, url)
      - else
        %tr
          %th Owner
          %td= stamp_wizard.owner

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_products-0.3.9 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.8 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.7 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.6 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.5 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.4 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.3 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.2 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.1 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.3.0 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.2.1 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.2.0 app/views/effective/stamp_wizards/_summary.html.haml