Sha256: 02218a2fd959f2ea5b39608487d6da4b780494ac5a2c69010b81fb911c50446e

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

<table width="100%" cellpadding="0" cellspacing="25" border="0">
  <tr>
    <td align="left">
      <h3 style="margin:0"><%= report.title %></h3>
    </td>
  </tr>
  <tr>
    <td align="center">
      <table class="data" cellpadding="5" cellspacing="0" border="0">
      <% (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 %>
      </table>
    </td>
  </tr>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reparty-0.5.0 app/views/report_mailer/_mixpanel_funnel.html.erb