Sha256: 67cf8e71516c3c6ea893136cc68840840eea4a2a4acd34be3033b72dc4111f7f
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
<h2 class="sr-only"><%= t('hyrax.collection.actions.header') %></h2> <div class="text-right"> <% if can? :deposit, presenter.solr_document %> <div> <% if @presenter.create_many_work_types? %> <%= link_to t('hyrax.collection.actions.add_new_work.label'), '#', title: t('hyrax.collection.actions.add_new_work.desc'), data: { behavior: "select-work", target: "#worktypes-to-create", 'create-type' => 'single', add_works_to_collection: presenter.id }, class: 'btn btn-primary deposit-new-work-through-collection' %> <% else # simple link to the first work type %> <%= link_to t('hyrax.collection.actions.add_new_work.label'), new_polymorphic_path([main_app, @presenter.first_work_type], add_works_to_collection: presenter.id), class: 'btn btn-primary' %> <% end %> </div> <div> <%= link_to t('hyrax.collection.actions.add_existing_works.label'), hyrax.my_works_path(add_works_to_collection: presenter.id), title: t('hyrax.collection.actions.add_existing_works.desc'), class: 'btn btn-link side-arrows', data: { turbolinks: false } %> </div> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-2.1.0.rc1 | app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb |
hyrax-2.1.0.beta2 | app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb |