Sha256: 9e0b5ecdd437d6f551a5479fedf77b026567025ad0c721a400a864fbec2ce96e
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
<% score = experiment.score %> <table> <caption> <%= experiment.conclusion(score).join(" ") %></caption> <% score.alts.each do |alt| %> <tr class="<%= "choice" if score.choice == alt %>"> <td class="option"><%= alt.name.gsub(/^o/, "O") %>:</td> <td class="value"><code><%=vanity_h alt.key.to_s %></code></td> <td class="value"><%= alt.participants %> participants</td> <td class="value"><%= alt.converted %> converted</td> <td> <%= "%.1f%%" % [alt.conversion_rate * 100] %> <%= "(%d%% better than %s)" % [alt.difference, score.least.name] if alt.difference && alt.difference >= 1 %> </td> <td class="action"> <% if experiment.active? && respond_to?(:url_for) %> <% if experiment.showing?(alt) %> showing <% else %> <a class="button chooses" title="Show me this alternative from now on" href="#" data-id="<%= experiment.id %>" data-url="<%= url_for(:action=>:chooses, :e=>experiment.id, :a=>alt.id) %>">show</a> <% end %> <% end %> </td> </tr> <% end %> </table> <%= %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookout-vanity-1.8.2 | lib/vanity/templates/_ab_test.erb |