<% @cohorts.size.times do |i| %> <% end %> <% @cohorts.each_with_index do |row, index| %> <% start = row[1][:count][0] %> <% (@cohorts.size).times do |i| %> <% end %> <% end %>
<%= i %> <%= @period %>
<%= row[0] %>
<%= start %> users
<% if @cohorts.size - index > (i + 1) %> <%= "#{((row[1][:count][i].to_f/start.to_f) * 100.00).round(0)}%" %> <% else %> -- <% end %>