Sha256: a0842a4ab8d8cb3bc83a1858c31537035c172f9e024fdb721fc8a45495beac20

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

<% if 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: t("blacklight.search.view.#{view}", default: blacklight_config.view[view].title)), :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}") %></span>
      <% end %>
    <% end %>
  </div>
</div>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-5.5.1 app/views/catalog/_view_type_group.html.erb
blacklight-5.5.0 app/views/catalog/_view_type_group.html.erb
blacklight-5.4.0 app/views/catalog/_view_type_group.html.erb
blacklight-5.4.0.rc1 app/views/catalog/_view_type_group.html.erb