X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5a625a53394fa99ef7fb44ab63104b8195d963df..c3b26754a231ec909506f2ff28af1af9f2e27f2b:/apps/workbench/app/views/trash_items/_untrash_item.html.erb?ds=sidebyside 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 2ba9dc93f1..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 = "Un-trash '" + if !object.name.blank? then object.name else object.uuid end + "'?" %> - <%= link_to({action: 'untrash_items', selection: [object.uuid]}, remote: true, method: :post, - data: {confirm: msg}) do %> - - <% end %> + <%= link_to(url_for(object), {title: "Untrash", style: 'cursor: pointer;'}) do %> + + <% end %> <% end %>