Sha256: d0e25b6c94feaf2e8f5e6bf9d72fe06a0cb2189db95fc011574d51489911aee4

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

=header "Instance state transitions"
=subheader "#{driver_symbol}@#{Thread::current[:provider] || ENV['API_PROVIDER'] || 'default'}"

%div{ :'data-role' => :content, :'data-theme' => 'd', :class => 'middle-dialog'}
  = image_tag api_url_for('instance_states?format=png')

  %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-theme' => 'a'}
    - @machine.states.each do |state|
      %li{ :'data-role' => 'list-divider', :'class' => 'ui-bar-a', :'data-theme' => 'a'}=state
      - if state.transitions.empty?
        %li{ :'data-role' => 'list-divider'} Action
        %li
          %p{ :'data-role' => 'fieldcontain'}="---"
        %li{ :'data-role' => 'list-divider'} Destination
        %li
          %p{ :'data-role' => 'fieldcontain'}="---"
      - else
        %li{ :'data-role' => 'list-divider'} Action
        - state.transitions.each do |transition|
          %li
            - if transition.automatically?
              %p{ :'data-role' => 'fieldcontain'} auto
            - else
              %p{ :'data-role' => 'fieldcontain'}=transition.action
          %li{ :'data-role' => 'list-divider'} Destination
          %li
            %p{ :'data-role' => 'fieldcontain'}=transition.destination

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deltacloud-core-0.5.0 views/instance_states/show.html.haml
deltacloud-core-0.4.1 views/instance_states/show.html.haml
deltacloud-core-0.4.0 views/instance_states/show.html.haml