You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/01/03 10:39:18 UTC

svn commit: r1226716 - in /deltacloud/trunk/server/views/instances: show.html.haml show.xml.haml

Author: marios
Date: Tue Jan  3 09:39:18 2012
New Revision: 1226716

URL: http://svn.apache.org/viewvc?rev=1226716&view=rev
Log:
Adds display of storage volumes to deltacloud show instance

Modified:
    deltacloud/trunk/server/views/instances/show.html.haml
    deltacloud/trunk/server/views/instances/show.xml.haml

Modified: deltacloud/trunk/server/views/instances/show.html.haml
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/views/instances/show.html.haml?rev=1226716&r1=1226715&r2=1226716&view=diff
==============================================================================
--- deltacloud/trunk/server/views/instances/show.html.haml (original)
+++ deltacloud/trunk/server/views/instances/show.html.haml Tue Jan  3 09:39:18 2012
@@ -46,6 +46,11 @@
     - if @instance.firewalls
       %li{ :'data-role' => 'list-divider'} Firewalls
       %li=@instance.firewalls.join(", ")
+    - if @instance.storage_volumes
+      %li{ :'data-role' => 'list-divider'} Attached Storage Volumes
+      -@instance.storage_volumes.each do |vol|
+        %li
+          %p{ :'data-role' => 'fieldcontain'}="#{vol.keys.first} <---> #{vol.values.first}"
     %li{ :'data-role' => 'list-divider'} Actions
     %li
       %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }

Modified: deltacloud/trunk/server/views/instances/show.xml.haml
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/views/instances/show.xml.haml?rev=1226716&r1=1226715&r2=1226716&view=diff
==============================================================================
--- deltacloud/trunk/server/views/instances/show.xml.haml (original)
+++ deltacloud/trunk/server/views/instances/show.xml.haml Tue Jan  3 09:39:18 2012
@@ -41,6 +41,10 @@
     %firewalls<
       - @instance.firewalls.each do |firewall|
         %firewall{:href => firewall_url(firewall), :id => firewall }
+  - if @instance.storage_volumes
+    %storage_volumes<
+      - @instance.storage_volumes.each do |volume|
+        %storage_volume{:href=> storage_volume_url(volume.keys.first), :id => volume.keys.first, :device => volume.values.first}
   - if driver_has_auth_features?
     %authentication{ :type => driver_auth_feature_name }
       - if @instance.authn_feature_failed?