app/views/field_test/experiments/show.html.erb in field_test-0.2.0 vs app/views/field_test/experiments/show.html.erb in field_test-0.2.1

- old
+ new

@@ -4,10 +4,14 @@ <% end %> </p> <h1><%= @experiment.name %></h1> +<% if @experiment.description %> + <p class="description"><%= @experiment.description %></p> +<% end %> + <table> <thead> <tr> <th>Participant</th> <th style="width: 20%;">Variant</th> @@ -19,10 +23,23 @@ <% @memberships.each do |membership| %> <tr> <td><%= link_to membership.participant, participant_path(membership.participant) %></td> <td><%= membership.variant %></td> <td> - <% if membership.converted %> + <% converted = false %> + <% @experiment.goals.each do |goal| %> + <% if @events[[membership.id, goal]] %> + <% converted = true %> + <div> + <span class="check">✓</span> + <% if @experiment.multiple_goals? %> + <%= goal.titleize %> + <% end %> + </div> + <% end %> + <% end %> + + <% if !converted && membership.try(:converted) %> <span class="check">✓</span> <% end %> </td> <td> <% if membership.created_at > 1.day.ago %>