Sha256: 238d6be3dbb1cbe2bad5e3825dab985a3ba962ff371016e47b1f5ccd412b9f74

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

<h2 class="sr-only"><%= t('sufia.collection.actions.header') %></h2>
<div class="actions-controls-collections">
    <% if can? :edit, presenter.solr_document %>
      <%= link_to t('sufia.collection.actions.edit.label'),
                  edit_collection_path(presenter),
                  title: t('sufia.collection.actions.edit.desc'),
                  class: 'btn btn-default' %>
      <%= link_to t('sufia.collection.actions.add_works.label'),
                  sufia.dashboard_works_path(add_files_to_collection: presenter.id),
                  title: t('sufia.collection.actions.add_works.desc') %>
    <%end %>

    <% if can? :destroy, presenter.solr_document %>
      <%= link_to t('sufia.collection.actions.delete.label'),
                  collection_path(presenter),
                  title: t('sufia.collection.actions.delete.desc'),
                  class: 'btn btn-danger',
                  data: { confirm: t('sufia.collection.actions.delete.confirmation'),
                          method: :delete } %>
    <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 app/views/collections/_show_actions.html.erb