Sha256: 4b843a3f1c571b46564739fca1d79c39a315c19ca62b6f299631a85405d5e9e8
Contents?: true
Size: 438 Bytes
Versions: 42
Compression:
Stored size: 438 Bytes
Contents
module Noodall::Admin::BaseHelper include Noodall::LayoutHelper def admin_page_title @page_title ||= controller.controller_name.titleize + (controller.action_name == 'index' ? ' ' : " | #{controller.action_name.titleize}" ) + " | #{Noodall::UI.app_name}" end def admin_menu_items Noodall::UI.menu_items.map do |title, link| content_tag :li, link_to( title, send(link) ) end.join.html_safe end end
Version data entries
42 entries across 42 versions & 1 rubygems