Sha256: 4b45b80f2665c0342f3140d389aab674bdcc86d30f019ae0097ffb22c94885f1

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

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

    <% if can? :destroy, presenter.solr_document %>
      <%= link_to t('hyrax.collection.actions.delete.label'),
                  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 %>
</div>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.1.0 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.5 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.4 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.3 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.2 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.1 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/collections/_show_actions.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/collections/_show_actions.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/collections/_show_actions.html.erb