Sha256: 09b5833f227cf065a2e4bd1f268cde707bcb72835c211b8926fbe12f6a2f2232

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.value.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
tupalo-vanity-1.5.1 lib/vanity/templates/_ab_test.erb