Sha256: 25be02ec5ac456e7d3ef093877acc054b70f3e4614b64b297ccc194546db6c1b

Contents?: true

Size: 482 Bytes

Versions: 13

Compression:

Stored size: 482 Bytes

Contents

module Fe::AnswerPagesHelper
  
  # page sidebar navigation
  def li_page_active_if(condition, attributes = {}, &block)
    if condition
      attributes[:class] ||= ''
      attributes[:class] += " active"
    end
    content_tag("li", attributes, &block)
  end
  
  # prepares the javascript function call to load a page
  def load_page_js(page_link)
    return '' if page_link.nil?
    
    %{fe.pageHandler.loadPage('#{page_link.dom_id}','#{page_link.load_path}')}
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fe-2.1.5 app/helpers/fe/answer_pages_helper.rb
fe-2.1.4 app/helpers/fe/answer_pages_helper.rb
fe-2.1.3 app/helpers/fe/answer_pages_helper.rb
fe-2.1.2 app/helpers/fe/answer_pages_helper.rb
fe-2.1.1 app/helpers/fe/answer_pages_helper.rb
fe-2.0.8 app/helpers/fe/answer_pages_helper.rb
fe-2.0.6 app/helpers/fe/answer_pages_helper.rb
fe-2.0.5 app/helpers/fe/answer_pages_helper.rb
fe-2.0.4 app/helpers/fe/answer_pages_helper.rb
fe-2.0.3 app/helpers/fe/answer_pages_helper.rb
fe-2.0.2 app/helpers/fe/answer_pages_helper.rb
fe-2.0.1 app/helpers/fe/answer_pages_helper.rb
fe-2.0.0 app/helpers/fe/answer_pages_helper.rb