Sha256: b540ac3238bd625c78eb753e8c24d43246c609f2e42a38f3687948aefaa9fc48

Contents?: true

Size: 506 Bytes

Versions: 43

Compression:

Stored size: 506 Bytes

Contents

<%= content_tag :span, t(:'.document_count', count: metadata[:document_count]) %>
<% if metadata[:document_count] > 0 %>
  •
  <% limit = field_config&.limit || Spotlight::FieldMetadata::FACET_LIMIT %>
  <% limit = blacklight_config.default_facet_limit if limit == true %>
  <% if metadata[:value_count] >= limit %>
    <%= content_tag :span, t(:'.too_many_values_count', count: limit) %>
  <% else %>
    <%= content_tag :span, t(:'.value_count', count: metadata[:value_count]) %>
  <% end %>
<% end %>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.1 app/views/spotlight/search_configurations/_facet_metadata.html.erb
blacklight-spotlight-3.4.0 app/views/spotlight/search_configurations/_facet_metadata.html.erb
blacklight-spotlight-3.3.0 app/views/spotlight/search_configurations/_facet_metadata.html.erb