Sha256: ae99527c5f0d128f4547915bc4f7333a2f1a7f56e89ada576b52fbe7d74cab23

Contents?: true

Size: 644 Bytes

Versions: 6

Compression:

Stored size: 644 Bytes

Contents

# Dashboard - the cycles we have registered for but aren't in a group for yet
class EffectiveMentorshipsRegistrationsDatatable < Effective::Datatable
  datatable do
    col :mentorship_cycle

    col :available, label: "Schedule" do |mentorship_registration|
      mentorship_registration.mentorship_cycle.available_date
    end

    col :opt_in
    col :mentorship_role do |mentorship_registration|
      if mentorship_registration.opt_in?
        badge(mentorship_registration.mentorship_role)
      else
        '-'
      end
    end

    actions_col
  end

  collection do
    current_user.mentorship_registrations_without_groups
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_mentorships-0.2.4 app/datatables/effective_mentorships_registrations_datatable.rb
effective_mentorships-0.2.3 app/datatables/effective_mentorships_registrations_datatable.rb
effective_mentorships-0.2.2 app/datatables/effective_mentorships_registrations_datatable.rb
effective_mentorships-0.2.1 app/datatables/effective_mentorships_registrations_datatable.rb
effective_mentorships-0.2.0 app/datatables/effective_mentorships_registrations_datatable.rb
effective_mentorships-0.1.0 app/datatables/effective_mentorships_registrations_datatable.rb