Sha256: 5c225fe3de69c3b86657872aaab0567ea481424297e5fe1797b311cdcc4249fb
Contents?: true
Size: 899 Bytes
Versions: 3
Compression:
Stored size: 899 Bytes
Contents
=header "Hardware profiles" =subheader @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'}=@profile.name - @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-0.5.0 | views/hardware_profiles/show.html.haml |
deltacloud-core-0.4.1 | views/hardware_profiles/show.html.haml |
deltacloud-core-0.4.0 | views/hardware_profiles/show.html.haml |