Sha256: 2fa8388cc608fc0fb79ce6ce4d72bfcd5458b65d756b554c826cbe2fedb2584d

Contents?: true

Size: 1.32 KB

Versions: 65

Compression:

Stored size: 1.32 KB

Contents

<% if presenter.collection_type_is_nestable? %>
  <!-- The user should have deposit access to the parent (the collection we are showing) and read access to the child -->
  <% if presenter.user_can_nest_collection? %>
    <div class="text-right">
      <div>
        <div class="sr-only"><% t('hyrax.collection.actions.nest_collections.desc') %></div>
        <%= button_tag t('hyrax.collection.actions.nest_collections.button_label'),
              class: 'btn btn-primary add-subcollection',
              title: t('hyrax.collection.actions.nest_collections.desc'),
              data: { nestable: true,
                      hasaccess: true,
                      presenter_id: presenter.id } %>
      </div>
      <div>
        <!-- The user should must have the ability to create a new collection of parent's type -->
        <% if presenter.user_can_create_new_nest_collection? %>
          <div class="sr-only"><% t('hyrax.collection.actions.add_new_nested_collection.desc') %></div>
          <%= link_to t('hyrax.collection.actions.add_new_nested_collection.label'),
            hyrax.dashboard_create_subcollection_under_path(parent_id: presenter.id),
            title: t('hyrax.collection.actions.add_new_nested_collection.desc'),
            class: 'btn btn-link side-arrows' %>
        <% end %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.4 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.3 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.2 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/collections/_show_subcollection_actions.html.erb