X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fc10c21d75b15e36c4f861fdd17bf985ca83d888..5f8a7ee855778644abf70e7058317891738d2ce1:/apps/workbench/app/views/trash_items/_untrash_item.html.erb diff --git a/apps/workbench/app/views/trash_items/_untrash_item.html.erb b/apps/workbench/app/views/trash_items/_untrash_item.html.erb index 7fd7af7723..8732531747 100644 --- a/apps/workbench/app/views/trash_items/_untrash_item.html.erb +++ b/apps/workbench/app/views/trash_items/_untrash_item.html.erb @@ -1,5 +1,7 @@ <% if object.editable? %> - <%= link_to({action: 'untrash_item', id: object.uuid}, remote: true, data: {confirm: "Un-trash #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %> + <% msg = "Untrash '" + if !object.name.blank? then object.name else object.uuid end + "'?" %> + <%= link_to({action: 'untrash_items', selection: [object.uuid]}, remote: true, method: :post, + title: "Untrash", data: {confirm: msg}) do %> <% end %> <% end %>