Sha256: 90a607a932e6c6f82a69eb8a637792edafd18449f882ec69364ff7bdbde1c806
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
<p> <%= link_to root_path do %> « Experiments <% end %> </p> <h1><%= @experiment.name %></h1> <% if @experiment.description %> <p class="description"><%= @experiment.description %></p> <% end %> <table> <thead> <tr> <th>Participant</th> <th class="width-20">Variant</th> <th class="width-20">Converted</th> <th class="width-20">Started</th> </tr> </thead> <tbody> <% @memberships.each do |membership| %> <tr> <td><%= field_test_participant_link(membership) %></td> <td><%= membership.variant %></td> <td> <% 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 %> <%= time_ago_in_words(membership.created_at, include_seconds: true) %> ago <% else %> <%= membership.created_at.to_formatted_s(:short) %> <% end %> </td> </tr> <% end %> </tbody> </table> <p class="pagination"> <% unless @page == 1 %> <%= link_to experiment_path(@experiment.id, page: @page - 1) do %> « Prev <% end %> <% end %> <!-- there may not be a next page, but don't want another DB query --> <% if @memberships.size == @per_page %> <%= link_to experiment_path(@experiment.id, page: @page + 1) do %> Next » <% end %> <% end %> </p>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
field_test-0.7.0 | app/views/field_test/experiments/show.html.erb |
field_test-0.6.1 | app/views/field_test/experiments/show.html.erb |