X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5f8a7ee855778644abf70e7058317891738d2ce1..1c6464fc1b6e3cde61b64fc07308a3934966fe74:/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 8732531747..50780d9497 100644 --- a/apps/workbench/app/views/trash_items/_untrash_item.html.erb +++ b/apps/workbench/app/views/trash_items/_untrash_item.html.erb @@ -1,7 +1,9 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% if object.editable? %> - <% 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 %> + <%= link_to(url_for(object), {title: "Untrash", style: 'cursor: pointer;'}) do %> + + <% end %> <% end %>