Sha256: c0aba28bea633520ce141b441ef3c59e030de1153d7546785577931ccbe2de73

Contents?: true

Size: 951 Bytes

Versions: 12

Compression:

Stored size: 951 Bytes

Contents

- learndash_user = current_user.try(:learndash_user)
- authorized = learndash_user && EffectiveResources.authorized?(self, :show, learndash_user)

%h2 Courses

- if learndash_user.blank?
  %p You do not have an account to access courses. When you are enrolled in a course, your account credentials will be displayed here.

- if learndash_user.present? && authorized
  - learndash_user.refresh!

  %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')

  - if learndash_user.learndash_enrollments.present?
    - datatable = EffectiveResources.best('EffectiveLearndashEnrollmentsDatatable').new(self)
    = render_datatable(datatable, simple: true)

  - else
    %p You are not enrolled in any courses.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_learndash-0.4.0 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.3.3 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.3.2 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.3.1 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.3.0 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.2.1 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.2.0 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.1.9 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.1.8 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.1.7 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.1.6 app/views/effective/learndash/_dashboard.html.haml
effective_learndash-0.1.5 app/views/effective/learndash/_dashboard.html.haml