X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/783343e5aca00f730315d943cecf74e4277a38e7..d4c8504da527f1a984ecd1ed0da7147010f38b6e:/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 10979517d9..7d8ac4dacb 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,37 +1,52 @@ +<% 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 %> +
Content hash:
- <%= @object.uuid %>
No source information available.
- <% end %> - - <% if @output_of.andand.any? %> -This collection was the output of:
- <%= render_arvados_object_list_start(@output_of, 'Show all jobs',
- jobs_path(filters: [['output', '=', @object.uuid]].to_json)) do |job| %>
- <%= link_to_if_arvados_object(job, friendly_name: true) %>
- <% end %>
-
This collection contains log messages from:
- <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
- jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %>
- <%= link_to_if_arvados_object(job, friendly_name: true) %>
- <% end %>
+ <% if defined? @same_pdh %>
+
Found in collections:
+
+ <% @same_pdh.each do |c| %>
+ <%= link_to_if_arvados_object get_object(c.owner_uuid), {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %>
+ <% end %>
Content hash:
+ <%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %>
- Created: <%= name_or_object.created_at.to_s(:long) %> + Created: <%= name_or_object.created_at.to_s(:long) if name_or_object.created_at %>
- Last modified: <%= name_or_object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %> + Last modified: <%= name_or_object.modified_at.to_s(:long) if name_or_object.modified_at %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %>
<% else %> <%= render_arvados_object_list_start(@logs, 'Show all activity', @@ -110,4 +125,4 @@