diff --git a/app/views/instances/index.html.erb b/app/views/instances/index.html.erb
index 3acaac2..8bdd1f2 100644
--- a/app/views/instances/index.html.erb
+++ b/app/views/instances/index.html.erb
@@ -26,7 +26,9 @@
%>
<%= label %> |
<%= label_for(instance[:aws_image_id]) %> (<%= instance[:aws_image_id]%>)
- | <%= link_to "Make a snapshot", :action => :snap_instance, :id => instance[:aws_instance_id]%> | <%= link_to "Prune snapshots", :action => :prune_snapshots, :id => instance[:aws_instance_id]%> | <%= link_to "Delete oldest snapshot", :action => :destroy_oldest_snapshots, :id => instance[:aws_instance_id]%>
+ | <%= button_to "Make a snapshot", :action => :snap_instance, :id => instance[:aws_instance_id]%>
+ <%= button_to "Prune snapshots", {:action => :prune_snapshots, :id => instance[:aws_instance_id]}, {:confirm => 'Are you sure?'}%>
+ <%= button_to "Delete oldest snapshot", {:action => :destroy_oldest_snapshots, :id => instance[:aws_instance_id]}, {:confirm => 'Are you sure?'}%>
|
@@ -59,7 +61,7 @@
<%= snapshot[:aws_status] %> |
<%= snapshot[:aws_progress] %> |
<%= snapshot[:aws_started_at] %> |
- <%= link_to "Destroy", :action => :destroy_snapshot, :id => snapshot[:aws_id]%>
+ | <%= button_to "Destroy", {:action => :destroy_snapshot, :id => snapshot[:aws_id]}, {:confirm => 'Are you sure?'}%>
|
<%- } -%>
|