Sha256: d20f2e8fcc8c7f8a2b4f7f8df50ff3bee43e0c439ed38fdb777ba03ccfd8cb85

Contents?: true

Size: 671 Bytes

Versions: 2

Compression:

Stored size: 671 Bytes

Contents

<% (report.funnel_data.first[1]["steps"].size+1).times.each do |i|  %>
  <% if i == 0 %>
    <thead><tr>
      <th width="100"></th>
      <% report.funnel_data.each do |data| %>
        <th><%= Date.parse(data[0]).strftime("%b %-d") %></th>
      <% end %>
    </tr></thead>
  <% else %>
    <tr>
      <% report.funnel_data.each_with_index do |data, j| %>
        <% if j == 0 %><td class="first"><%= data[1]["steps"][i-1]["goal"] %></td><% end %>
        <td>
          <%= number_to_percentage data[1]["steps"][i-1]["step_conv_ratio"]*100, precision: 2 %>
          (<%= data[1]["steps"][i-1]["count"] %>)
        </td>
      <% end %>
    </tr>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reparty-0.5.2 app/views/mixpanel/_funnel.html.erb
reparty-0.5.1 app/views/mixpanel/_funnel.html.erb