<%= erb :header_mini %>

<%= I18n.t('stats.title') %>

<%= I18n.t('stats.stray') %>

<%= I18n.t('stats.idle') %>

<%= I18n.t('stats.current') %>

<%= I18n.t('stats.nodata') %>

<%= I18n.t('stats.elapsed') %>

<%= I18n.t('stats.nodata') %>

All slides

<% max = @all.sort_by {|slide, time| -time}[0][1].to_f rescue 0 %> <% @all.sort.map do |slide, time| %> <% next if slide.empty? %> <% timestr = (time < 60) ? ':%S' : (time < 3599) ? '%M:%S' : '%H:%M:%S' %>
<%= slide %>
<%= Time.at(time).gmtime.strftime(timestr) %>
<% if @counter %>
<% @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 %>
<% end %>
<% end %>