Sha256: 069e485e5125f2554cb8032b397b8a48dbf3ba33d9d92288cac57d6f18226cf6

Contents?: true

Size: 1.47 KB

Versions: 6

Compression:

Stored size: 1.47 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',
                data: { turbolinks: false } %>
<% 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

6 entries across 6 versions & 1 rubygems

Version Path
hyrax-2.1.0 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/dashboard/collections/_show_actions.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/dashboard/collections/_show_actions.html.erb