Sha256: 8966ee454e5ef7125fd03954bd29cc24575286284658530b8729cf8387c42be9
Contents?: true
Size: 470 Bytes
Versions: 50
Compression:
Stored size: 470 Bytes
Contents
module MenuBarHelper def link_to_classroom link_to_application 'graduation-cap', :classroom, :teacher_here? end def link_to_bibliotheca link_to_application :book, :bibliotheca, :writer? end def link_to_application(icon, app_name, minimal_permissions) return unless current_user&.send(minimal_permissions) url = url_for_application(app_name) link_to fixed_fa_icon(icon, text: t(app_name)), url, role: 'menuitem', tabindex: '-1' end end
Version data entries
50 entries across 50 versions & 1 rubygems