osunyorg/admin

View on GitHub
app/views/faceted_search/facets/taxonomy/_selected.html.erb

Summary

Maintainability
Test Coverage
<% anchor ||= '' %>
<% if facet.values.any? %>
  <% facet.values.each do |taxon| %>
    <% identifier = taxon.id %>
    <% if facet.value_selected?(identifier) %>
      <% display_value = taxon.to_s_in(current_language) %>
      <%= render 'faceted_search/facets/facet-selected',
                  title: facet.title,
                  value: display_value,
                  path: facet.facets.path_for(facet, identifier) + anchor %>
    <% end %>
  <% end %>
<% end %>