header “Hardware profiles”

subheader “#{driver_symbol}@#{Thread::current || ENV || 'default'}”

%div{ :'data-role' => :content, :'data-theme' => 'c'}

%l{ :'data-role' => :listview, :'data-inset' => :true }
  - for profile in order_hardware_profiles(elements)
    %i{ :'data-theme' => 'c'}
      %{ :href => hardware_profile_url(profile.id)}
        %mg{ :class => 'ui-link-thumb', :src => '/images/profile.png'}
        %3= profile.name
        %
          %srong Architecture:
          = format_hardware_property profile.architecture
          %srong Memory:
          = format_hardware_property profile.memory
          %srong Storage:
          = format_hardware_property profile.storage
          %srong CPU:
          = format_hardware_property profile.cpu