app/helpers/admin_helper.rb
#takes the terms and scores received from SearchStats, and generates a string
takes the terms and scores received from SearchStats, and generates a string
takes the terms and scores received from SearchStats and generates a string
def search_terms_summary terms_and_scores    
    return "<span class='none_text'>No search queries during this period</span>".html_safe if terms_and_scores.empty?
    words=terms_and_scores.collect{|ts| "#{h(ts[0])}(#{ts[1]})" }
    words.join(", ").html_safe
  end
def search_terms_summary terms_and_scores return "<span class='none_text'>No search queries during this period</span>" . html_safe if terms_and_scores . empty? words = terms_and_scores . collect { | ts | "#{h(ts[0])}(#{ts[1]})" } words . join ( ", " ) . html_safe end
takes the terms and scores received from SearchStats, and generates a string
takes the terms and scores received from SearchStats and generates a string
terms_and_scores