Sha256: 8140543c3d2a88880c34d2f74c3f425e6f05dcf9f0a0cb55a09bb369e99d6bcd

Contents?: true

Size: 782 Bytes

Versions: 18

Compression:

Stored size: 782 Bytes

Contents

module ApplicationHelper
  include WithStudentPathNavigation

  def contact_email
    Organization.current.contact_email
  end

  def page_title(subject)
    if subject && !subject.new_record?
      "#{subject.friendly} - Mumuki"
    else
      "Mumuki - #{t :mumuki_catchphrase}"
    end
  end

  def paginate(object, options={})
    "<div class=\"text-center\">#{super(object, {theme: 'twitter-bootstrap-3'}.merge(options))}</div>".html_safe
  end

  def corollary_box(with_corollary)
    if with_corollary.corollary.present?
      %Q{
      <div class="corollary-box">
        <p>#{with_corollary.corollary_html}</p>
      </div>
}.html_safe
    end
  end

  def chapter_finished(chapter)
    t :chapter_finished_html, chapter: link_to_path_element(chapter) if chapter
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-5.3.0 app/helpers/application_helper.rb
mumuki-laboratory-5.2.1 app/helpers/application_helper.rb
mumuki-laboratory-5.2.0 app/helpers/application_helper.rb
mumuki-laboratory-5.1.1 app/helpers/application_helper.rb
mumuki-laboratory-5.1.0 app/helpers/application_helper.rb
mumuki-laboratory-5.0.12 app/helpers/application_helper.rb
mumuki-laboratory-5.0.11 app/helpers/application_helper.rb
mumuki-laboratory-5.0.10 app/helpers/application_helper.rb
mumuki-laboratory-5.0.9 app/helpers/application_helper.rb
mumuki-laboratory-5.0.8 app/helpers/application_helper.rb
mumuki-laboratory-5.0.7 app/helpers/application_helper.rb
mumuki-laboratory-5.0.6 app/helpers/application_helper.rb
mumuki-laboratory-5.0.5 app/helpers/application_helper.rb
mumuki-laboratory-5.0.4 app/helpers/application_helper.rb
mumuki-laboratory-5.0.3 app/helpers/application_helper.rb
mumuki-laboratory-5.0.2 app/helpers/application_helper.rb
mumuki-laboratory-5.0.1 app/helpers/application_helper.rb
mumuki-laboratory-5.0.0 app/helpers/application_helper.rb