Sha256: b3a62771c61cedc04c937a9e74e23dca0e4ab806bd8166c619370a2d718b873e

Contents?: true

Size: 412 Bytes

Versions: 38

Compression:

Stored size: 412 Bytes

Contents

module WithStudentPathNavigation
  def next_button(navigable)
    return unless navigable
    ContinueNavigation.new(self).button(navigable) || RevisitNavigation.new(self).button(navigable)
  end

  def next_lesson_button(guide)
    next_button(guide.lesson) || chapter_finished(guide.chapter)
  end

  def next_exercise_button(exercise)
    next_button(exercise) || next_button(exercise.guide.lesson)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mumuki-laboratory-5.12.1 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.12.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.11.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.10.4 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.10.3 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.10.2 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.10.1 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.10.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.9.1 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.9.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.8.3 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.8.1 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.8.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.7.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.6.3 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.6.2 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.6.1 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.6.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.5.0 app/helpers/concerns/with_student_path_navigation.rb
mumuki-laboratory-5.4.0 app/helpers/concerns/with_student_path_navigation.rb