Sha256: 3aee45a6259bc35726b5293c823c85894d56ba3c6caa398514a9d79a82917c94

Contents?: true

Size: 1.12 KB

Versions: 15

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-sm 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

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.4 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.3 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/dashboard/collections/_subcollection_list.html.erb