Sha256: 0e91982924a3590c1baf295a0dd791e5455d69875e11ca3df26fc10c7e8d4012

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

%h1 Storage Volumes

%table.display
  %thead
    %tr
      %th ID
      %th Created
      %th Realm
      %th Capacity
      %th Status
      %th Actions
  %tbody
    - @storage_volumes.each do |volume|
      %tr
        %td
          = link_to volume.id, storage_volume_url( volume.id )
        %td
          = volume.created
        %td
          = volume.realm_id
        %td
          = "#{volume.capacity} GB"
        %td
          = "#{volume.state}"
        %td
          - if ["AVAILABLE", "IN-USE"].include?(volume.state)
            =link_to_action "Snaphot", url_for("/api/storage_snapshots/new?volume_id=#{volume.id}"), :get
            - unless volume.instance_id
              =link_to_action "Delete", destroy_storage_volume_url(volume.id), :delete
              =link_to_action "Attach", url_for("/api/storage_volumes/attach?id=#{volume.id}"), :get
            - if volume.instance_id
              =link_to_action "Detach", detach_storage_volume_url(volume.id), :post
  %tfoot
    %tr
      %td{:colspan => 6}
        %a{ :href => url_for("/api/storage_volumes/new")} Create volume

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
deltacloud-core-0.3.0 views/storage_volumes/index.html.haml
steamcannon-deltacloud-core-0.1.2.1 views/storage_volumes/index.html.haml
steamcannon-deltacloud-core-0.1.1.3 views/storage_volumes/index.html.haml
steamcannon-deltacloud-core-0.1.1.2 views/storage_volumes/index.html.haml
steamcannon-deltacloud-core-0.1.1.1 views/storage_volumes/index.html.haml