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