Sha256: d4922e276c3fc7e2c543e7fe2bf84366b0bd2b08f062b8a4bcfa937dab0533e2

Contents?: true

Size: 804 Bytes

Versions: 30

Compression:

Stored size: 804 Bytes

Contents

<% views = blacklight_view_config_for_search_block(block) %>
<% if views.length > 1 -%>
<div class="view-type">
  <span class="sr-only"><%= t('blacklight.search.view_title') %></span>
  <div class="view-type-group btn-group">
    <% views.each do |view, config| %>
      <%= link_to url_for(search_state.to_h.merge(view: view)), :title => t("blacklight.search.view_title.#{view}", default: t("blacklight.search.view.#{view}", default: blacklight_config.view[view].title)), :class => "btn btn-outline-secondary view-type-#{ view.to_s.parameterize } #{"active" if block_document_index_view_type(block) == view}" do %>
        <%= blacklight_icon config.icon || view %>
        <span class="caption"><%= t("blacklight.search.view.#{view}") %></span>
      <% end %>
    <% end %>
  </div>
</div>
<% end -%>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta10 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.5.0.4 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.5.0.3 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta6 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta5 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta4 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta3 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.6.0.beta1 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.5.0.2 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.5.0.1 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.5.0 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.4.1 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.4 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.3 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.2.2 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.2.1 app/views/spotlight/pages/_view_type_group.html.erb
blacklight-spotlight-3.4.2 app/views/spotlight/pages/_view_type_group.html.erb