Sha256: 4ce152772efe83cd6ddb4c0b13f5287b58869b77706807aba4a4ef07808f4f1d

Contents?: true

Size: 633 Bytes

Versions: 14

Compression:

Stored size: 633 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 << link_to( 'Foo', foo_path ) if controller?('FoosController')
      (html * ' &gt; ').html_safe
    end
  end

  def set_title(title = nil)
    if title.nil?
      content_for(:title) { 'Editorial Logic' }
      content_for(:page_title) {  }
    else
      content_for(:title) { title + ' - Editorial Logic' }
      content_for(:page_title) { title }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
editorial_logic-1.4.2 app/helpers/layout_helper.rb
editorial_logic-1.4.1 app/helpers/layout_helper.rb
editorial_logic-1.4.0 app/helpers/layout_helper.rb
editorial_logic-1.3.3 app/helpers/layout_helper.rb
editorial_logic-1.3.2 app/helpers/layout_helper.rb
editorial_logic-1.3.1 app/helpers/layout_helper.rb
editorial_logic-1.3.0 app/helpers/layout_helper.rb
editorial_logic-1.1.6 app/helpers/layout_helper.rb
editorial_logic-1.1.5 app/helpers/layout_helper.rb
editorial_logic-1.1.4 app/helpers/layout_helper.rb
editorial_logic-1.1.3 app/helpers/layout_helper.rb
editorial_logic-1.1.2 app/helpers/layout_helper.rb
editorial_logic-1.1.1 app/helpers/layout_helper.rb
editorial_logic-1.1.0 app/helpers/layout_helper.rb