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

Version Path
noodall-ui-0.2.3 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.2.2 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.2.1 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.2.0 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.17 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.16 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.15 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.14 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.13 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.12 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.11 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.10 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.9 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.8 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.6 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.5 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.4 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.3 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.2 app/helpers/noodall/admin/base_helper.rb
noodall-ui-0.1.1 app/helpers/noodall/admin/base_helper.rb