Sha256: 7672c9bb84d5598df5e4507a67acb9ad0bc1d0ceafcc2ce70eaf6ab5c05b655c

Contents?: true

Size: 981 Bytes

Versions: 40

Compression:

Stored size: 981 Bytes

Contents

module ApplicationHelper
  include ScaffoldLogic::FormHelper
  include ScaffoldLogic::Helper
  include ScaffoldLogic::TabInterfaceHelper
  include ScaffoldLogic::MenuHelper

  def admin_breadcrumbs
    html = %{<ol class="breadcrumbs">}

    # Top-level
    html << content_tag(:li, link_to('Home', '/'))

    # Secondary

    # Tidy up
    html << %{</ol>}

    # Output that puppy.
    html.html_safe

  end

  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, 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

40 entries across 40 versions & 1 rubygems

Version Path
blog_logic-1.2.2 app/helpers/application_helper.rb
blog_logic-1.2.1 app/helpers/application_helper.rb
blog_logic-1.2.0 app/helpers/application_helper.rb
blog_logic-1.1.9 app/helpers/application_helper.rb
blog_logic-1.1.8 app/helpers/application_helper.rb
blog_logic-1.1.7 app/helpers/application_helper.rb
blog_logic-1.1.6 app/helpers/application_helper.rb
blog_logic-1.1.5 app/helpers/application_helper.rb
blog_logic-1.1.4 app/helpers/application_helper.rb
blog_logic-1.1.3 app/helpers/application_helper.rb
blog_logic-1.1.2 app/helpers/application_helper.rb
blog_logic-1.1.1 app/helpers/application_helper.rb
blog_logic-1.1.0 app/helpers/application_helper.rb
blog_logic-1.0.0 app/helpers/application_helper.rb
blog_logic-0.7.7 app/helpers/application_helper.rb
blog_logic-0.7.6 app/helpers/application_helper.rb
blog_logic-0.7.5 app/helpers/application_helper.rb
blog_logic-0.7.4 app/helpers/application_helper.rb
blog_logic-0.7.3 app/helpers/application_helper.rb
blog_logic-0.7.2 app/helpers/application_helper.rb