Skip to content

Commit

Permalink
Added name and kind properties to Storage Volume model to match
Browse files Browse the repository at this point in the history
RHEV-M model of Storage Domain

git-svn-id: https://svn.apache.org/repos/asf/incubator/deltacloud/trunk@1055023 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mfojtik committed Jan 4, 2011
1 parent 7813475 commit 555fd6a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions server/lib/deltacloud/models/storage_volume.rb
Expand Up @@ -26,5 +26,7 @@ class StorageVolume < BaseModel
attr_accessor :device
attr_accessor :realm_id
attr_accessor :actions
attr_accessor :name
attr_accessor :kind

end
4 changes: 4 additions & 0 deletions server/views/storage_volumes/show.html.haml
Expand Up @@ -2,6 +2,10 @@
= @storage_volume.id

%dl
%di
%dt Name
%dd
= @storage_volume.name
%di
%dt Created
%dd
Expand Down
18 changes: 12 additions & 6 deletions 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}
Expand Down

0 comments on commit 555fd6a

Please sign in to comment.