diff --git a/server/lib/deltacloud/models/storage_volume.rb b/server/lib/deltacloud/models/storage_volume.rb index faf4ca4e..00180f9d 100644 --- a/server/lib/deltacloud/models/storage_volume.rb +++ b/server/lib/deltacloud/models/storage_volume.rb @@ -26,5 +26,7 @@ class StorageVolume < BaseModel attr_accessor :device attr_accessor :realm_id attr_accessor :actions + attr_accessor :name + attr_accessor :kind end diff --git a/server/views/storage_volumes/show.html.haml b/server/views/storage_volumes/show.html.haml index fb1ce90a..f5b04d15 100644 --- a/server/views/storage_volumes/show.html.haml +++ b/server/views/storage_volumes/show.html.haml @@ -2,6 +2,10 @@ = @storage_volume.id %dl + %di + %dt Name + %dd + = @storage_volume.name %di %dt Created %dd diff --git a/server/views/storage_volumes/show.xml.haml b/server/views/storage_volumes/show.xml.haml index 5275b787..8a20c613 100644 --- a/server/views/storage_volumes/show.xml.haml +++ b/server/views/storage_volumes/show.xml.haml @@ -1,14 +1,20 @@ - unless defined?(partial) !!!XML %storage_volume{ :href => storage_volume_url(@storage_volume.id), :id => @storage_volume.id} - %created< - =@storage_volume.created + - if @storage_volume.created + %created< + =@storage_volume.created %capacity{ :unit => "GB" }< = @storage_volume.capacity - %realm_id< - = @storage_volume.realm_id - %state< - = @storage_volume.state + - if @storage_volume.kind + %kind + = @storage_volume.kind + - if @storage_volume.name + %name + = @storage_volume.name + - if @storage_volume.device + %device + = @storage_volume.device - unless @storage_volume.instance_id.nil? %mount %instance{:href => @storage_volume.instance_id, :id => @storage_volume.instance_id}