<% if presenter.show_deposit_for?(collections: @user_collections) %> <%= button_tag t('hyrax.dashboard.my.action.add_to_collection'), class: 'btn btn-default submits-batches submits-batches-add', data: { toggle: "modal", target: "#collection-list-container" } %> <% end %> <% if presenter.work_featurable? %> <%= link_to t('.feature'), hyrax.featured_work_path(presenter, format: :json), data: { behavior: 'feature' }, class: presenter.display_feature_link? ? 'btn btn-default' : 'btn btn-default collapse' %> <%= link_to t('.unfeature'), hyrax.featured_work_path(presenter, format: :json), data: { behavior: 'unfeature' }, class: presenter.display_unfeature_link? ? 'btn btn-default' : 'btn btn-default collapse' %> <% end %> <% if Hyrax.config.analytics? %> <%= link_to t('.analytics'), presenter.stats_path, id: 'stats', class: 'btn btn-default' %> <% end %>
<% if presenter.editor? %> <%= link_to t('.edit'), edit_polymorphic_path([main_app, presenter]), class: 'btn btn-default' %> <% if presenter.member_presenters.size > 1 %> <%= link_to t("hyrax.file_manager.link_text"), polymorphic_path([main_app, :file_manager, presenter]), class: 'btn btn-default' %> <% end %> <% if presenter.valid_child_concerns.length > 0 %>
<% end %> <%= link_to t('.delete'), [main_app, presenter], class: 'btn btn-danger', data: { confirm: t('.confirm_delete', work_type: presenter.human_readable_type) }, method: :delete %> <% end %>
<%= render 'hyrax/dashboard/collections/form_for_select_collection', user_collections: @user_collections %>