Sha256: f695dd0e3cd18e8aaa98e5d99b0c94623ceda7b38ca46f322a1c79af088e44af
Contents?: true
Size: 1.43 KB
Versions: 54
Compression:
Stored size: 1.43 KB
Contents
<h2 class="sr-only"><%= t('hyrax.collection.actions.header') %></h2> <% if can? :edit, presenter.solr_document %> <%= link_to t('hyrax.collection.actions.edit.label'), hyrax.edit_dashboard_collection_path(presenter), title: t('hyrax.collection.actions.edit.desc'), class: 'btn btn-primary' %> <% end %> <% if presenter.collection_type_is_nestable? && presenter.user_can_nest_collection? %> <!-- The user should have deposit access to the parent and read access to the child (the collection we are already showing, so no test is necessary). --> <%= button_tag '', class: 'btn btn-primary add-to-collection', title: t("hyrax.collection.actions.nested_subcollection.desc"), type: 'button', data: { nestable: presenter.collection_type_is_nestable?, hasaccess: true } do %> <%= t('hyrax.collection.actions.nested_subcollection.button_label') %> <% end %> <% end %> <% if can? :destroy, presenter.solr_document %> <%= link_to t('hyrax.collection.actions.delete.label'), hyrax.dashboard_collection_path(presenter), title: t('hyrax.collection.actions.delete.desc'), class: 'btn btn-danger', data: { confirm: t('hyrax.collection.actions.delete.confirmation'), method: :delete } %> <% end %>
Version data entries
54 entries across 54 versions & 1 rubygems