Sha256: 692e1ba6ee7c90a25d0c47ca534f88faf62a0051a5b9a12e8687b7b2ced47d1b

Contents?: true

Size: 257 Bytes

Versions: 65

Compression:

Stored size: 257 Bytes

Contents

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

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
mumuki-laboratory-7.12.3 app/helpers/assistance_box_helper.rb
mumuki-laboratory-8.0.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.12.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.12.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.11.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.11.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.5 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.4 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.3 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.2 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.10.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.9.2 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.9.1 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.9.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.7.6 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.7.5 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.7.4 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.8.0 app/helpers/assistance_box_helper.rb
mumuki-laboratory-7.7.3 app/helpers/assistance_box_helper.rb