X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d7bc150a11260ba93d3403ef4c49b12baf2a93a0..5c1c5e34118a3867fca9e7f0150074ea18623939:/apps/workbench/app/views/trash_items/_show_trash_rows.html.erb
diff --git a/apps/workbench/app/views/trash_items/_show_trash_rows.html.erb b/apps/workbench/app/views/trash_items/_show_trash_rows.html.erb
index 747f185573..dd451b6eac 100644
--- a/apps/workbench/app/views/trash_items/_show_trash_rows.html.erb
+++ b/apps/workbench/app/views/trash_items/_show_trash_rows.html.erb
@@ -1,32 +1,47 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% @objects.each do |obj| %>
-
+
+ <% if obj.editable? and obj.is_trashed %>
+ <%= 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 %>
+ |
+ <% if obj.is_trashed %>
- <% 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 %>
+ <%= link_to_if_arvados_object @owners[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 %>
+ <% if obj.trash_at %>
+ <%= render_localized_date(obj.trash_at) %>
<% end %>
- <% if obj.files.length > 3 %>
- <%= "(#{obj.files.length-3} more files)" %>
+
+ <% if obj.delete_at %>
+ <%= render_localized_date(obj.delete_at) %>
<% end %>
|
-
- <%= render partial: 'untrash_item', locals: {object:obj} %>
+ <% else %>
+ |
+ <%= link_to_if_arvados_object @owners[obj.owner_uuid], friendly_name: true %>
+
+ This item is contained within a trashed project.
|
-
+ <% end %>
+