mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-10-18 23:54:37 +02:00
13 lines
323 B
Ruby
13 lines
323 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.term} (#{facet.count})",
|
|
class: "facet"
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|