Sha256: 6a5dfed071a5994128b886a2462c438b8b8e6dfd4149a3200eb147abf5225806

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

- unless defined?(partial)
  !!!XML
%storage_volume{ :href => storage_volume_url(@storage_volume.id), :id => @storage_volume.id}
  - if @storage_volume.created
    %created<
      =@storage_volume.created
  %capacity{ :unit => "GB" }<
    = @storage_volume.capacity
  - if @storage_volume.kind
    %kind<
      = @storage_volume.kind
  - if @storage_volume.name
    %name<
      = @storage_volume.name
  - if @storage_volume.device
    %device<
      = @storage_volume.device
  - if @storage_volume.realm_id
    %realm{:id => @storage_volume.realm_id, :href => realm_url(@storage_volume.realm_id)}
    %realm_id<
      = @storage_volume.realm_id
  - if @storage_volume.state
    %state<
      = @storage_volume.state

  - unless @storage_volume.instance_id.nil?
    %mount
      %instance{:href => instance_url(@storage_volume.instance_id), :id => @storage_volume.instance_id}
      - unless @storage_volume.device.nil?
        %device{ :name => @storage_volume.device }
  - if @storage_volume.actions
    %actions
      - @storage_volume.actions.each do |action|
        %link{:rel => action, :method => action_method(action, :storage_volumes), :href => self.send("#{action}_storage_volume_url", @storage_volume.id)}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deltacloud-core-0.5.0 views/storage_volumes/show.xml.haml
deltacloud-core-0.4.1 views/storage_volumes/show.xml.haml
deltacloud-core-0.4.0 views/storage_volumes/show.xml.haml