<% @counter[slide].each do |host, views| %>
<% count = views.inject(0) { |sum, view| sum += view['elapsed'] } %>
<% timestr = (count < 60) ? ':%S' : (count < 3599) ? '%M:%S' : '%H:%M:%S' %>
<% if host == 'presenter' %>
<% bgcolor = '' %>
<%= host %>:
<% else %>
<% bgcolor = "background-color: ##{host[0...6]}" %>
<% end %>
<%= Time.at(count).gmtime.strftime(timestr) %>
<% end %>