Sha256: 6b4aa10599ac1219d285e85e5e2903ffa0172374ad548bc4c5c329ff7a10bcf5

Contents?: true

Size: 1.11 KB

Versions: 12

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

12 entries across 12 versions & 3 rubygems

Version Path
vanity-1.8.2 lib/vanity/templates/_ab_test.erb
vanity-1.8.1 lib/vanity/templates/_ab_test.erb
moses-vanity-1.8.1 lib/vanity/templates/_ab_test.erb
moses-vanity-1.8.0 lib/vanity/templates/_ab_test.erb
vanity-1.8.0 lib/vanity/templates/_ab_test.erb
moses-vanity-1.7.1 lib/vanity/templates/_ab_test.erb
fiverr-vanity-1.7.2 lib/vanity/templates/_ab_test.erb
vanity-1.7.1 lib/vanity/templates/_ab_test.erb
vanity-1.7.0 lib/vanity/templates/_ab_test.erb
vanity-1.6.1 lib/vanity/templates/_ab_test.erb
vanity-1.6.0 lib/vanity/templates/_ab_test.erb
vanity-1.5.3 lib/vanity/templates/_ab_test.erb