X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8917fa82999bdf0020f623db9869abae99930b56..d81ea65da05119d5c6480d373b5d42bbee8ae1ad:/apps/workbench/app/views/collections/show.html.erb diff --git a/apps/workbench/app/views/collections/show.html.erb b/apps/workbench/app/views/collections/show.html.erb index 83dcb4511b..0d52b088c4 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,3 +1,22 @@ +<% content_for :tab_line_buttons do %> + <%= link_to( + choose_projects_path( + title: 'Copy to project...', + my_root_selectable: true, + action_name: 'Copy', + action_href: actions_path, + action_method: 'post', + action_data: { + copy_selections_into_project: true, + selection: @name_link.andand.uuid || @object.uuid, + selection_param: 'uuid', + success: 'redirect-to-created-object' + }.to_json), + { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %> + Copy to project... + <% end %> +<% end %> +