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