X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8cc28c45ca3da20e9d66aabbaf43de777c582a84..8ba991c830983cd1c681f7d7c98907b8ada1e81c:/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 86228306f5..da0f9759c1 100644
--- a/apps/workbench/app/views/collections/_choose_rows.html.erb
+++ b/apps/workbench/app/views/collections/_choose_rows.html.erb
@@ -1,11 +1,40 @@
+<% @collections.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 %>
+
<% @name_links.each do |name_link| %>
-
-
+ <% if (object = get_object(name_link.head_uuid)) %>
+
<%= name_link.name %>
+ <% links_for_object(object).each do |tag| %>
+ <% if tag.link_class == 'tag' %>
+ <%= tag.name %>
+ <% end %>
+ <% end %>
-
- <%= link_to_if_arvados_object name_link.tail_uuid, friendly_name: true %>
-
-
+ <% end %>
<% end %>