X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/897e6cc8175865575a809e9fcc6d40ea566ee930..274ca7a6c2f1f600de4242eee6cb4e8465d4440c:/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 27b66e4482..da0f9759c1 100644 --- a/apps/workbench/app/views/collections/_choose_rows.html.erb +++ b/apps/workbench/app/views/collections/_choose_rows.html.erb @@ -4,7 +4,14 @@ style="margin-left: 1em; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #DDDDDD"> <% if object.respond_to? :name %> - <%= object.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 %>