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

Version Path
hyrax-5.0.1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.3.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.2.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-3.1.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb