Sha256: f754ee2f368e655a469b8106650d2fdbe7e5eb1d2bcc49d60cd772edaf6a1df8

Contents?: true

Size: 1.23 KB

Versions: 17

Compression:

Stored size: 1.23 KB

Contents

= card('Course Registration') do
  %table.table.table-sm
    %tbody
      %tr
        %th.border-0 Course
        %td.border-0
          %p
            %strong=course_registration.course

          - learndash_user = course_registration.learndash_owner.learndash_user
          %p Your course account credentials are:

          %ul
            %li
              %strong Username:
              #{learndash_user.username}
            %li
              %strong Password:
              #{learndash_user.password}

          %p= link_to('Sign in to your course account', EffectiveLearndash.learndash_url, target: '_blank', class: 'btn btn-primary mb-2')

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_learndash-0.6.1 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.6.0 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.5.2 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.5.1 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.5.0 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.4.0 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.3.3 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.3.2 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.3.1 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.3.0 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.2.1 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.2.0 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.1.9 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.1.8 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.1.7 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.1.6 app/views/effective/course_registrations/_summary.html.haml
effective_learndash-0.1.5 app/views/effective/course_registrations/_summary.html.haml