Sha256: ed5f2cba0ea75390c85482a9b1620700342a5f201bef912024a5301969d02503

Contents?: true

Size: 974 Bytes

Versions: 6

Compression:

Stored size: 974 Bytes

Contents

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

%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.id
    - @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

6 entries across 6 versions & 1 rubygems

Version Path
deltacloud-core-1.1.2 views/hardware_profiles/show.html.haml
deltacloud-core-1.1.1 views/hardware_profiles/show.html.haml
deltacloud-core-1.1.0 views/hardware_profiles/show.html.haml
deltacloud-core-1.0.5 views/hardware_profiles/show.html.haml
deltacloud-core-1.0.4 views/hardware_profiles/show.html.haml
deltacloud-core-1.0.3 views/hardware_profiles/show.html.haml