header Metric

subheader metric.id

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

%iv{ :'data-role' => :'collapsible-set'}
  - metric.properties.each do |p|
    %iv{ :'data-role' => :'collapsible', :'data-collapse' => 'true'}
      %3=p.name
      %able{ :summary => "#{p.name} values"}
        %aption Statistics for the last 60 minutes
        %r
          %h Time
          %h Minimum
          %h Maximum
          %h Average
          %h Unit
        - p.values.each do |v|
          %r
            %d=v[:timestamp]
            %d=v[:minimum]
            %d=v[:maximum]
            %d=v[:average]
            %d=v[:unit]