mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 08:03:14 +01:00
14 lines
317 B
Ruby
14 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
|