Sha256: ce3ace33a36f2c8f1639bb059325d9d3f80eaf1a2eb21a87b71a9845b22a7af3

Contents?: true

Size: 610 Bytes

Versions: 20

Compression:

Stored size: 610 Bytes

Contents

module LayoutHelper
  include ScaffoldLogic::FormHelper
  include ScaffoldLogic::Helper
  include ScaffoldLogic::TabInterfaceHelper

  def breadcrumbs
    unless controller?('home') && action?(/home|index/)
      html = [ link_to('Home', root_path) ]
      html * ''
    end
  end

  def set_title(title = nil, window_title = nil)
    app_name ||= 'SEO Logic'
    window_title ||= title
    if title.nil?
      content_for(:title) { app_name }
      content_for(:page_title) {  }
    else
      content_for(:title) { window_title + " - #{app_name}" }
      content_for(:page_title) { title }
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
site_logic-1.9.13 app/helpers/layout_helper.rb
site_logic-1.9.12 app/helpers/layout_helper.rb
site_logic-1.9.11 app/helpers/layout_helper.rb
site_logic-1.9.10 app/helpers/layout_helper.rb
site_logic-1.9.9 app/helpers/layout_helper.rb
site_logic-1.9.8 app/helpers/layout_helper.rb
site_logic-1.9.7 app/helpers/layout_helper.rb
site_logic-1.9.6 app/helpers/layout_helper.rb
site_logic-1.9.5 app/helpers/layout_helper.rb
site_logic-1.9.4 app/helpers/layout_helper.rb
site_logic-1.9.3 app/helpers/layout_helper.rb
site_logic-1.9.2 app/helpers/layout_helper.rb
site_logic-1.9.1 app/helpers/layout_helper.rb
site_logic-1.9.0 app/helpers/layout_helper.rb
site_logic-1.8.0 app/helpers/layout_helper.rb
site_logic-1.7.1 app/helpers/layout_helper.rb
site_logic-1.7.0 app/helpers/layout_helper.rb
site_logic-1.6.10 app/helpers/layout_helper.rb
site_logic-1.6.9 app/helpers/layout_helper.rb
site_logic-1.6.8 app/helpers/layout_helper.rb