Sha256: 53cb8d63f2d2fd291846ce0fab68c68142fc5cf3ac5c5296acbb85ae3887fe91

Contents?: true

Size: 319 Bytes

Versions: 18

Compression:

Stored size: 319 Bytes

Contents

module AssistanceBoxHelper
  def assistance_box(assignment)
    %Q{<div class="mu-tips-box">
      #{Mumukit::Assistant::Narrator.random.compose_explanation_html assignment.tips}
    </div>}.html_safe
  end

  def should_display_assistance_box?(assignment)
    assignment.tips.present? && !assignment.solved?
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-9.0.6 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.5 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.4 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.3 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.2 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.0.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.6.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.6.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.5.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.4.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.3.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.2.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.2.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.1.3 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.1.2 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.1.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.1.0 app/helpers/assistance_box_helper.rb