9587: display name instead of clickable link and remove tags
[arvados.git] / apps / workbench / app / views / trash_items / _show_trash_rows.html.erb
1 <% @objects.sort_by { |obj| obj.created_at }.reverse.each do |obj| %>
2     <tr data-object-uuid="<%= obj.uuid %>" data-kind="<%= obj.kind %>" >
3       <td>
4         <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection' %>
5       </td>
6       <td>
7         <%= if !obj.name.blank? then obj.name else obj.uuid end %>
8       <td>
9         <%= obj.created_at.to_s if obj.created_at %>
10       <td>
11         <%= obj.trash_at.to_s if obj.trash_at %>
12       </td>
13       <td>
14         <% i = 0 %>
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 />
19           <% i += 1 %>
20         <% end %>
21         <% if i < obj.files.length %>
22           &hellip;
23         <% end %>
24       </td>
25       <td>
26         <%= render partial: 'untrash_item', locals: {object:obj} %>
27       </td>
28     </tr>
29 <% end %>