stadtratmonitor/app/helpers/search_helper.rb
2015-07-18 12:44:39 +02:00

13 lines
317 B
Ruby

module SearchHelper
def facet_list(facets)
return unless facets.present?
content_tag(:ul) do
facets.each do |term, count|
concat content_tag(:li,
"#{term} (#{count})",
class: "facet"
)
end
end
end
end