Sha256: 63d81427fbca2b9aa113d723be1f5e3b9d1bede9e384eb7739ee41ce0a1e2c7c

Contents?: true

Size: 926 Bytes

Versions: 3

Compression:

Stored size: 926 Bytes

Contents

=header "Hardware profiles"
=subheader @hardware_profile.name

%div{ :'data-role' => :content, :'data-theme' => 'c'}
  %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'd'}
    %li{ :'data-role' => 'list-divider'} Name
    %li
      %p{ :'data-role' => 'fieldcontain'}=@hardware_profile.name
    - @hardware_profile.each_property do |p|
      %li{ :'data-role' => 'list-divider'} #{p.name.to_s.titlecase}
      %li
        %p{ :'data-role' => 'fieldcontain'}
          - if p.kind == :fixed
            =p.value
            =p.unit if not ['label', 'count'].include? p.unit
          -elsif p.kind == :range
            Minimum: #{p.first}
            =p.unit if not ['label', 'count'].include? p.unit
            Maximum: #{p.last}
            =p.unit if not ['label', 'count'].include? p.unit
          -elsif p.kind == :enum
            =p.values.join(" #{p.unit} or ")
            =p.unit

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deltacloud-core-1.0.2 views/hardware_profiles/show.html.haml
deltacloud-core-1.0.1 views/hardware_profiles/show.html.haml
deltacloud-core-1.0.0 views/hardware_profiles/show.html.haml