X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/385ce6601ff872a0a4124071ef39869a4d3cfd53..f4750d53482ddb3990426563bb424f72790b9090:/apps/workbench/app/views/application/_delete_object_button.html.erb diff --git a/apps/workbench/app/views/application/_delete_object_button.html.erb b/apps/workbench/app/views/application/_delete_object_button.html.erb index 69ed9dca74..4db3aea035 100644 --- a/apps/workbench/app/views/application/_delete_object_button.html.erb +++ b/apps/workbench/app/views/application/_delete_object_button.html.erb @@ -1,5 +1,9 @@ -<% if object.editable? %> - <%= link_to({action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{object.class_for_display.downcase} '#{object.friendly_link_name}' (#{object.uuid}).\n\nAre you sure?"}) do %> +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +<% if object.deletable? %> + <%= link_to({controller: object.class.table_name, action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "Really delete #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %> <% end %> <% end %>