<% @objects.each do |obj| %> <% if obj.editable? %> <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection', style: 'cursor: pointer;' %> <% end %> <%= if !obj.name.blank? then obj.name else obj.uuid end %> <%= render_localized_date(obj.trash_at) if obj.trash_at %> <%= render_localized_date(obj.delete_at) if obj.delete_at %> <%= link_to_if_arvados_object obj.owner_uuid, friendly_name: true %> <% for i in (0..[2, obj.files.length-1].min) %> <% file = obj.files[i] %> <% file_path = "#{file[0]}/#{file[1]}" %> <%= file_path %>
<% end %> <% if obj.files.length > 3 %> <%= "(#{obj.files.length-3} more files)" %> <% end %> <%= render partial: 'untrash_item', locals: {object:obj} %> <% end %>