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.4.15 app/helpers/application_helper.rb
blog_logic-1.4.14 app/helpers/application_helper.rb
blog_logic-1.4.13 app/helpers/application_helper.rb
blog_logic-1.4.12 app/helpers/application_helper.rb
blog_logic-1.4.11 app/helpers/application_helper.rb
blog_logic-1.4.10 app/helpers/application_helper.rb
blog_logic-1.4.9 app/helpers/application_helper.rb
blog_logic-1.4.8 app/helpers/application_helper.rb
blog_logic-1.4.7 app/helpers/application_helper.rb
blog_logic-1.4.6 app/helpers/application_helper.rb
blog_logic-1.4.5 app/helpers/application_helper.rb
blog_logic-1.4.4 app/helpers/application_helper.rb
blog_logic-1.4.3 app/helpers/application_helper.rb
blog_logic-1.4.2 app/helpers/application_helper.rb
blog_logic-1.4.1 app/helpers/application_helper.rb
blog_logic-1.4.0 app/helpers/application_helper.rb
blog_logic-1.3.1 app/helpers/application_helper.rb
blog_logic-1.3.0 app/helpers/application_helper.rb
blog_logic-1.2.4 app/helpers/application_helper.rb
blog_logic-1.2.3 app/helpers/application_helper.rb