X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a959f21c8147f26362df392bc3fd3290db69de85..917330c81bb370225ccd0e051dbdca3d1870710e:/apps/workbench/app/views/collections/_choose_rows.html.erb
diff --git a/apps/workbench/app/views/collections/_choose_rows.html.erb b/apps/workbench/app/views/collections/_choose_rows.html.erb
index 650a8c88e9..50f7ffe95d 100644
--- a/apps/workbench/app/views/collections/_choose_rows.html.erb
+++ b/apps/workbench/app/views/collections/_choose_rows.html.erb
@@ -1,17 +1,28 @@
-<% @name_links.each do |name_link| %>
- <% if (object = get_object(name_link.head_uuid)) %>
-
-
-
- <%= name_link.name %>
-
-
- <%= render_controller_partial(
- 'show_object_description_cell.html',
- controller_name: 'collections',
- locals: {object: object})
- %>
-
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<% @objects.each do |object| %>
+
+
+ <% if object.respond_to? :name %>
+ <% if not (object.name.nil? or object.name.empty?) %>
+ <%= object.name %>
+ <% elsif object.is_a? Collection and object.files.length > 0 %>
+ <%= object.files[0][1] %>
+ <%= "+ #{object.files.length-1} more" if object.files.length > 1 %>
+ <% else %>
+ <%= object.uuid %>
+ <% end %>
+ <% else %>
+ <%= object.uuid %>
+ <% end %>
+ <% links_for_object(object).each do |tag| %>
+ <% if tag.link_class == 'tag' %>
+ <%= tag.name %>
+ <% end %>
+ <% end %>
- <% end %>
<% end %>