Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / trash_items / _show_trash_rows.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% @objects.each do |obj| %>
6   <tr data-object-uuid="<%= obj.uuid %>" data-kind="<%= obj.kind %>" >
7     <td>
8       <% if obj.editable? and obj.is_trashed %>
9         <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection', style: 'cursor: pointer;' %>
10       <% end %>
11     </td>
12     <td>
13       <%= if !obj.name.blank? then obj.name else obj.uuid end %>
14     </td>
15     <% if obj.is_trashed %>
16       <td>
17         <%= link_to_if_arvados_object @owners[obj.owner_uuid], friendly_name: true %>
18       </td>
19
20       <td>
21         <% if obj.trash_at %>
22           <%= render_localized_date(obj.trash_at)  %>
23         <% end %>
24         <br />
25         <% if obj.delete_at %>
26           <%= render_localized_date(obj.delete_at) %>
27         <% end %>
28       </td>
29     <% else %>
30       <td colspan="2" class="trash-project-msg">
31         <%= link_to_if_arvados_object @owners[obj.owner_uuid], friendly_name: true %>
32         <br>
33         This item is contained within a trashed project.
34       </td>
35     <% end %>
36     <td>
37       <%= obj.uuid %>
38       <% if defined? obj.portable_data_hash %>
39         <br /><%= obj.portable_data_hash %>
40       <% end %>
41     </td>
42     <td>
43       <%= render partial: 'untrash_item', locals: {object:obj} %>
44     </td>
45   </tr>
46
47 <% end %>