Sha256: 850271d5340f3f37aff6d0171a1daf3459bdbcb345eb550b57ea7f877a6f4612

Contents?: true

Size: 825 Bytes

Versions: 13

Compression:

Stored size: 825 Bytes

Contents

= card('Event Registration') do
  %table.table.table-sm
    %tbody
      %tr
        %th.border-0 Event
        %td.border-0
          = link_to(event_registration.event, effective_events.event_path(event_registration.event))

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


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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_events-0.2.8 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.7 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.6 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.5 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.4 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.3 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.2 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.1 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.2.0 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.1.10 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.1.9 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.1.8 app/views/effective/event_registrations/_summary.html.haml
effective_events-0.1.7 app/views/effective/event_registrations/_summary.html.haml