1 <% @objects.sort_by { |obj| obj.created_at }.reverse.each do |obj| %>
2 <tr data-object-uuid="<%= obj.uuid %>" data-kind="<%= obj.kind %>" >
4 <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection' %>
7 <%= if !obj.name.blank? then obj.name else obj.uuid end %>
9 <%= obj.created_at.to_s if obj.created_at %>
11 <%= obj.trash_at.to_s if obj.trash_at %>
15 <% while i < 5 and i < obj.files.length %>
16 <% file = obj.files[i] %>
17 <% file_path = "#{file[0]}/#{file[1]}" %>
18 <%= file_path %><br />
21 <% if i < obj.files.length %>
26 <%= render partial: 'untrash_item', locals: {object:obj} %>