Sha256: a6aac726c03618245fd625bd05995b64bc7001e01744ae5c8b22b25b143d064f

Contents?: true

Size: 724 Bytes

Versions: 20

Compression:

Stored size: 724 Bytes

Contents

module EngineyardThemeHelper
  def header(*args,&block)
    add_navigation = args[0] || 'true'
    add_js = args[1] || 'true'
    additional_header = block_given? ? capture(&block) : ''
    render :partial => 'engineyard-theme/header', :locals => {
      :additional_header => additional_header,
      :add_navigation => add_navigation,
      :add_js => add_js
    }
  end
  
  def footer(*args,&block)
    additional_footer = block_given? ? capture(&block) : ''
    add_navigation = args[0] || 'true'
    add_js = args[1] || 'true'
    render :partial => 'engineyard-theme/footer', :locals => {
      :additional_footer => additional_footer,
      :add_navigation => add_navigation,
      :add_js => add_js
    }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
engineyard-theme-2.4.3 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.4.2 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.4.1 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.4.0 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.15 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.14 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.13 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.12 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.11 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.10 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.9 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.8 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.7 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.6 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.5 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.3 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.2 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.1 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.3.0 app/helpers/engineyard_theme_helper.rb
engineyard-theme-2.2.9 app/helpers/engineyard_theme_helper.rb