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 * ' > ').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