mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
refactor facets_list helper
This commit is contained in:
parent
1cf5485356
commit
4aa0b2424b
2 changed files with 4 additions and 4 deletions
|
@ -2,9 +2,9 @@ module SearchHelper
|
|||
def facet_list(facets)
|
||||
return unless facets.present?
|
||||
content_tag(:ul) do
|
||||
facets.each do |term, count|
|
||||
facets.each do |facet|
|
||||
concat content_tag(:li,
|
||||
"#{term} (#{count})",
|
||||
"#{facet['key']} (#{facet['doc_count']})",
|
||||
class: "facet"
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue