Sha256: ad4117ffd4781c7e348c13261cac7802c08a519b7e2035e36bde5500ac414cce

Contents?: true

Size: 324 Bytes

Versions: 39

Compression:

Stored size: 324 Bytes

Contents

module AssistanceBoxHelper
  def assistance_box(assignment)
    %Q{<div class="mu-tips-box mb-3">
      #{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

39 entries across 39 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.22.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.21.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.20.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.20.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.19.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.18.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.18.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.17.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.16.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.15.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.14.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.14.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.13.2 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.13.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.13.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.12.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.12.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.11.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-9.10.0 app/helpers/assistance_box_helper.rb