Sha256: fbf427ad62c601c8c4eae10a69a2acca5f0f6ef34897791a7b6abbddb0fc9642

Contents?: true

Size: 1.12 KB

Versions: 49

Compression:

Stored size: 1.12 KB

Contents

<% if @subcollection_docs.nil? || @subcollection_docs.empty? %>
<div class="alert alert-warning" role="alert"><%= t('hyrax.collections.show.no_visible_subcollections') %></div>
<% else %>
<ul class="collections-list">
  <% @subcollection_docs.each do |document| %>
  <li
    data-id="<%= document.id %>"
    data-parent-id="<%= id %>"
    data-post-url="<%= hyrax.dashboard_remove_child_relationship_under_path(id, document.id) %>"
    data-subcollection-label="<%= document.title_or_label %>">
    <div class="flex-wrapper">
      <div class="collections-list-title">
        <%= link_to document.title_or_label, [hyrax, :dashboard, document], id: "src_copy_link_#{document.id}" %>
      </div>
      <% if can? :edit, id %>
      <button class="btn btn-xs btn-danger remove-subcollection-button"><%= t('hyrax.collections.show.buttons.remove_this_sub_collection') %></button>
      <% end %>
    </div>
  </li>
  <% end %>
</ul>
<%= render 'hyrax/collections/paginate', solr_response: @subcollection_solr_response, page_param_name: :sub_collection_page %>
<% end %>

<% if can? :edit, id %>
<%= render 'modal_remove_sub_collection' %>
<% end %>

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.3.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.2.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.1.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.5 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.0.2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.0.1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.0.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.4 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-3.0.0.pre.rc3 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.3 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-2.9.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb