X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/420949e37a2903ab87f64f57278dfdc6a261a7f3..f4ca9ad94a6bb006d1f3c7ba207837f1736d1247:/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 52a568f9ba..6ece8606a8 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,5 @@ -<% 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} #{object.uuid}.\n\nAre you sure?"}) do %> +<% if object.deletable? %> + <%= link_to({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 %>