You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/04/10 14:20:37 UTC

[3/3] git commit: Mock: Added link to :destroy_storage_snapshot to 'storage_snapshot' XML

Mock: Added link to :destroy_storage_snapshot to 'storage_snapshot' XML


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/93c1c7b1
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/93c1c7b1
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/93c1c7b1

Branch: refs/heads/master
Commit: 93c1c7b16baf7ed080cd17f4664b52a9b98205ac
Parents: 2cb1b8b
Author: Michal Fojtik <mf...@redhat.com>
Authored: Thu Apr 5 13:24:32 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Tue Apr 10 14:20:33 2012 +0200

----------------------------------------------------------------------
 server/views/storage_snapshots/show.xml.haml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/93c1c7b1/server/views/storage_snapshots/show.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/storage_snapshots/show.xml.haml b/server/views/storage_snapshots/show.xml.haml
index f9596a6..c151c1e 100644
--- a/server/views/storage_snapshots/show.xml.haml
+++ b/server/views/storage_snapshots/show.xml.haml
@@ -4,3 +4,6 @@
   %created<
     =@storage_snapshot.created
   %storage_volume{:href => storage_volume_url(@storage_snapshot.storage_volume_id), :id => @storage_snapshot.storage_volume_id}
+  %actions
+    - if driver.respond_to? :destroy_storage_snapshot
+      %link{:rel => :destroy, :method => :delete, :href => destroy_storage_snapshot_url(@storage_snapshot.id)}