X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3b7eb34eed85186602c059778775291888513d21..18b51b1ff1f40f1c0467f1960b329c7bc317322d:/apps/workbench/app/views/projects/_show_tab_contents.html.erb
diff --git a/apps/workbench/app/views/projects/_show_tab_contents.html.erb b/apps/workbench/app/views/projects/_show_tab_contents.html.erb
index e95ba72077..df37d3e1c7 100644
--- a/apps/workbench/app/views/projects/_show_tab_contents.html.erb
+++ b/apps/workbench/app/views/projects/_show_tab_contents.html.erb
@@ -15,34 +15,35 @@
'data-selection-action' => 'remove',
'data-remote' => true,
'method' => 'delete'
+ %>
+
<%= link_to "Move selected", '#',
+ 'data-href' => choose_projects_path(
+ title: 'Move to...',
+ editable: true,
+ action_name: 'Move',
+ action_href: move_items_project_path,
+ action_method: 'get',
+ action_data: {selection_param: 'target',
+ success: 'page-refresh'}.to_json),
+ 'data-remote' => true,
+ 'data-selection-param-name' => 'move_items[]',
+ 'data-selection-action' => 'move'
%>
-
+
- <%
- selected_objects_and_names = []
- specific_data_kinds = ['arvados#collection', 'arvados#group', 'arvados#job', 'arvados#pipelineInstance', 'arvados#pipelineTemplate']
- @objects_and_names.each do |object, name_link|
- if !data_kind.any? && !specific_data_kinds.include?(object.kind)
- selected_objects_and_names << [object, name_link]
- elsif data_kind.include?(object.kind)
- selected_objects_and_names << [object, name_link]
- end
- end
- %>
-
-
+
-
- <%= render partial: 'show_contents_rows', locals: {project: @object, objects_and_names: selected_objects_and_names} %>
+ ">
+ <%= render partial: 'show_contents_rows', locals: {project: @object, objects_and_names: objects_and_names} %>