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