X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/27697133a18371d692d69569659dd522e7b0fbdd..a9619cd9d563b5c434da6a11566517cacb410124:/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 183d6d38d6..94b099a25c 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -2,7 +2,6 @@ <%= link_to( choose_projects_path( title: 'Copy to project...', - my_root_selectable: true, action_name: 'Copy', action_href: actions_path, action_method: 'post', @@ -22,7 +21,7 @@

- <% if @object.uuid.match /[0-9a-f]{32}/ %> + <% if @name_link.nil? and @object.uuid.match /[0-9a-f]{32}/ %> Content hash <%= @object.portable_data_hash %> <% else %> <%= if @object.respond_to? :name @@ -35,11 +34,11 @@

- <% if @object.uuid.match /[0-9a-f]{32}/ %> + <% if defined? @same_pdh %>

Found in collections:

- <% cols = Collection.filter([["portable_data_hash", "=", @object.portable_data_hash]]).each do |c| %> - <%= link_to_if_arvados_object c.owner_uuid, {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %>
+ <% @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 %>

<% else %>