def meter_row(meters, range, name)
      style = cycle('', 'background-color: #dddddd;')

      content_tag(:tr) do
        concat content_tag(:th, name, align: 'left', style: style)
        range.to_a.reverse.each do |date|
          value = meters[name][date] || 0
          concat content_tag(:td, value, align: 'right', style: style)
        end
      end
    end
def meter_row(meters, range, name)
      style = cycle('', 'background-color: #dddddd;')

      content_tag(:tr) do
        concat content_tag(:th, name, align: 'left', style: style)
        range.to_a.reverse.each do |date|
          value = meters[name][date] || 0
          concat content_tag(:td, value, align: 'right', style: style)
        end
      end
    end
Constructs an HTML table row