X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/956093639196f92f3ad4b9e0795bcc7e30520e0d..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 67a3d06df2..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} #{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 %>