blob: 403c0fddc41e7a90e86aea7a084a3f79771e8240 [file] [log] [blame]
=header Metric
=subheader metric.id
%div{ :'data-role' => :content, :'data-theme' => 'c'}
%div{ :'data-role' => :'collapsible-set'}
- metric.properties.each do |p|
%div{ :'data-role' => :'collapsible', :'data-collapse' => 'true'}
%h3=p.name
%table{ :summary => "#{p.name} values"}
%caption Statistics for the last 60 minutes
%tr
%th Time
%th Minimum
%th Maximum
%th Average
%th Unit
- p.values.each do |v|
%tr
%td=v[:timestamp]
%td=v[:minimum]
%td=v[:maximum]
%td=v[:average]
%td=v[:unit]