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