Sha256: 1dce6806695cf035f6ae3bf69b67da9da1db8be9266b4bd2081305c2c490c62e

Contents?: true

Size: 819 Bytes

Versions: 13

Compression:

Stored size: 819 Bytes

Contents

<% if show_sort_and_per_page? and has_alternative_views? -%>
<div class="view-type">
  <span class="sr-only"><%= t('blacklight.search.view_title') %></span>
  <div class="view-type-group btn-group">
    <%  document_index_views.each do |view, config| %>
    <%= link_to url_for(params.merge(:view => view)), :title => t(:"blacklight.search.view_title.#{view}", default: [:"blacklight.search.view.#{view}", blacklight_config.view[view].title || view.to_s]), :class => "btn btn-default view-type-#{ view.to_s.parameterize } #{"active" if document_index_view_type == view}" do %>
      <%= render_view_type_group_icon view %>
        <span class="caption"><%= t(:"blacklight.search.view.#{view}", default: blacklight_config.view[view].title || view.to_s) %></span>
      <% end %>
    <% end %>
  </div>
</div>
<% end -%>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blacklight-5.10.3 app/views/catalog/_view_type_group.html.erb
blacklight-5.9.4 app/views/catalog/_view_type_group.html.erb
blacklight-5.10.2 app/views/catalog/_view_type_group.html.erb
blacklight-5.10.1 app/views/catalog/_view_type_group.html.erb
blacklight-5.10.0 app/views/catalog/_view_type_group.html.erb
blacklight-5.9.3 app/views/catalog/_view_type_group.html.erb
blacklight-5.9.2 app/views/catalog/_view_type_group.html.erb
blacklight-5.9.1 app/views/catalog/_view_type_group.html.erb
blacklight-5.9.0 app/views/catalog/_view_type_group.html.erb
blacklight-5.8.2 app/views/catalog/_view_type_group.html.erb
blacklight-5.8.1 app/views/catalog/_view_type_group.html.erb
blacklight-5.8.0 app/views/catalog/_view_type_group.html.erb
blacklight-5.7.2 app/views/catalog/_view_type_group.html.erb