Sha256: 4731faca0567776be5e4b685a360ac795511e2ac21d124b94ac296244a9009bc
Contents?: true
Size: 726 Bytes
Versions: 56
Compression:
Stored size: 726 Bytes
Contents
module Caboose module PagesHelper def pages_list(page) str = "<ul>" str << pages_list_helper(page) str << "</ul>" return str end def pages_list_helper(page) str = "<li><a href='/admin/pages/#{page.id}/edit'>#{page.title}</a>" if page.children && page.children.count > 0 str << "<ul>" page.children.each do |p| str << pages_list_helper(p) end str << "</ul>" end str << "</li>" return str end def ab_testing_analytics_code return "var _gaq = _gaq || [];\n_gaq.push(['_setCustomVar', 1, 'caboose_ab_variants', #{Caboose.json(AbTesting.analytics_string)}]);" end end end
Version data entries
56 entries across 56 versions & 1 rubygems