Sha256: e124f4e67531219328cbe67d17263e834361c0e2cff28f813fbed3fa4cd46991

Contents?: true

Size: 1.28 KB

Versions: 43

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, add_works_to_collection_label: presenter.title),
                  title: t('hyrax.collection.actions.add_existing_works.desc'),
                  class: 'btn btn-link side-arrows' %>
    </div>
  <% end %>
</div>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.3.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.2.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.1.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.5 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.0.2 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.0.1 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.0.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.4 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-3.0.0.pre.rc3 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.3 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.2 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.1 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
hyrax-2.9.0 app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb