% score = experiment.calculate_score %>
<%= alt.name.gsub(/^o/, "O") %>: | <%=vanity_h alt.value.to_s %> |
<%= I18n.t 'vanity.participants', :count=>alt.participants %> | <%= I18n.t 'vanity.converted', :count=>alt.converted %> | <%= "%.1f%%" % [alt.conversion_rate * 100] %> <%= I18n.t('vanity.best_alternative', :probabilty=>alt.probability.to_i) if score.method == :bayes_score %> <%= I18n.t('vanity.better_alternative_than', :probability=>alt.difference.to_i, :alternative=>score.least.name) if alt.difference && alt.difference >= 1 %> | <% if experiment.active? && respond_to?(:url_for) %><% if experiment.showing?(alt) %> <%= I18n.t 'vanity.currently_shown' %> <% else %> <%= I18n.t 'vanity.show_me' %> <% end %> | <% if @to_confirm == alt.id %> <%= I18n.t 'vanity.complete_and_confirm_experiment_label', :name=>alt.name %> <%= I18n.t 'vanity.confirm' %> <% else %> <%= I18n.t 'vanity.make_permanent' %> <% end %> | <% end %>