mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-07-14 16:31:33 +02:00
13 lines
332 B
Ruby
13 lines
332 B
Ruby
module SearchHelper
|
|
def facet_list(facets)
|
|
return unless facets.present?
|
|
content_tag(:ul) do
|
|
facets.each do |facet|
|
|
concat content_tag(:li,
|
|
"#{facet['key']} (#{facet['doc_count']})",
|
|
class: "facet"
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|