Sha256: 740d77229f8efe56c9941cfaeff49034daea408480e6f6f055e0921911d0e32c

Contents?: true

Size: 762 Bytes

Versions: 20

Compression:

Stored size: 762 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 collections.collection_path(Sufia::Noid.noidify(params[:id]), 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

20 entries across 20 versions & 2 rubygems

Version Path
sufia-5.0.0 app/views/collections/_view_type_group.html.erb
sufia-5.0.0.rc1 app/views/collections/_view_type_group.html.erb
sufia-6.0.0.rc2 app/views/collections/_view_type_group.html.erb
sufia-6.0.0.rc1 app/views/collections/_view_type_group.html.erb
sufia-4.3.1 app/views/collections/_view_type_group.html.erb
sufia-6.0.0.beta1 app/views/collections/_view_type_group.html.erb
sufia-4.2.0 app/views/collections/_view_type_group.html.erb
sufia-4.1.0 app/views/collections/_view_type_group.html.erb
sufia-4.0.1 app/views/collections/_view_type_group.html.erb
worthwhile-0.1.2 app/views/collections/_view_type_group.html.erb
worthwhile-0.1.1 app/views/collections/_view_type_group.html.erb
worthwhile-0.1.0 app/views/collections/_view_type_group.html.erb
worthwhile-0.0.3 app/views/collections/_view_type_group.html.erb
worthwhile-0.0.2 app/views/collections/_view_type_group.html.erb
worthwhile-0.0.1 app/views/collections/_view_type_group.html.erb
sufia-4.0.0 app/views/collections/_view_type_group.html.erb
sufia-4.0.0.rc2 app/views/collections/_view_type_group.html.erb
sufia-4.0.0.rc1 app/views/collections/_view_type_group.html.erb
sufia-4.0.0.beta4 app/views/collections/_view_type_group.html.erb
sufia-4.0.0.beta3 app/views/collections/_view_type_group.html.erb