X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fc10c21d75b15e36c4f861fdd17bf985ca83d888..42c20b25e1325124b88e3b9b285544dc41122b56:/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 73b89dd549..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,39 +1,47 @@ -<% @objects.sort_by { |obj| obj.created_at }.reverse.each do |obj| %> - +<%# 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 %> - <%= check_box_tag 'uuids[]', obj.uuid, false, :class => 'persistent-selection' %> + <%= link_to_if_arvados_object @owners[obj.owner_uuid], friendly_name: true %> + - <%= link_to_if_arvados_object obj, friendly_name: true %> - - <%= obj.created_at.to_s if obj.created_at %> - - <%= obj.trash_at.to_s if obj.trash_at %> - - - <% i = 0 %> - <% while i < 3 and i < obj.files.length %> - <% file = obj.files[i] %> - <% file_path = "#{file[0]}/#{file[1]}" %> - <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: obj.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %>
- <% i += 1 %> + <% if obj.trash_at %> + <%= render_localized_date(obj.trash_at) %> <% end %> - <% if i < obj.files.length %> - ⋮ +
+ <% if obj.delete_at %> + <%= render_localized_date(obj.delete_at) %> <% end %> - - - <% if @collection_info[obj.uuid] %> - <% @collection_info[obj.uuid][:tag_links].each do |tag_link| %> - <%= tag_link.name %> -   - <% end %> - <% 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 %> + + <%= obj.uuid %> + <% if defined? obj.portable_data_hash %> +
<%= obj.portable_data_hash %> + <% end %> + + + <%= render partial: 'untrash_item', locals: {object:obj} %> + + + <% end %>