Sha256: e2238c39742854e34af6c17a701c1c68f99b2807ba2479efc3d50d4d4cce77df

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 Bytes

Contents

<% # must pass in local variable :solr_field
%>

<ul class="facet-values list-unstyled">
  <% solr_range_queries_to_a(solr_field).each do |hash| %>
    <li>
        <span class="facet-label">
            <%= link_to(
                  t('blacklight.range_limit.range_html',
                    begin: format_range_display_value(hash[:from], solr_field),
                    begin_value: hash[:from],
                    end: format_range_display_value(hash[:to], solr_field),
                    end_value: hash[:to]
                  ),
                  search_action_url(add_range(solr_field, hash[:from], hash[:to]).except(:controller, :action)),
                  class: 'facet_select'
              ) %>
        </span>
        <%= render_facet_count hash[:count], classes: ['count'] %>
    </li>
  <% end %>
</ul>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight_range_limit-8.1.0 app/views/blacklight_range_limit/_range_segments.html.erb
blacklight_range_limit-8.0.1 app/views/blacklight_range_limit/_range_segments.html.erb
blacklight_range_limit-8.0.0 app/views/blacklight_range_limit/_range_segments.html.erb
blacklight_range_limit-7.9.1 app/views/blacklight_range_limit/_range_segments.html.erb
blacklight_range_limit-7.9.0 app/views/blacklight_range_limit/_range_segments.html.erb