Fixed paging so that it won't fail if the necessary methods are missing on the result...
[arvados.git] / apps / workbench / app / views / application / _delete_object_button.html.erb
1 <% if object.editable? %>
2   <%= 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 %>
3     <i class="glyphicon glyphicon-trash"></i>
4   <% end %>
5 <% end %>