X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e08c67024acccb83a30d2010c34862973b883585..48956dadd90d0a71a51afdcd9fd3d9a988866272:/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 d611dbdee8..7d8ac4dacb 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,34 +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 %> +
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(filter: [['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(filter: [['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', @@ -86,16 +104,16 @@ <% if @projects.andand.any? %>Included in projects:
<%= render_arvados_object_list_start(@projects, 'Show all projects',
- links_path(filter: [['head_uuid', '=', @object.uuid],
- ['link_class', '=', 'name']].to_json)) do |project| %>
- <%= link_to_if_arvados_object(project, friendly_name: true) %>
+ links_path(filters: [['head_uuid', '=', @object.uuid],
+ ['link_class', '=', 'name']].to_json)) do |project| %>
+ <%= link_to_if_arvados_object(project, friendly_name: true) %>
<% end %>
Readable by:
<%= render_arvados_object_list_start(@permissions, 'Show all permissions',
- links_path(filter: [['head_uuid', '=', @object.uuid],
+ links_path(filters: [['head_uuid', '=', @object.uuid],
['link_class', '=', 'permission']].to_json)) do |link| %>
<%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %>
<% end %>
@@ -107,4 +125,4 @@