<%= link_to root_path do %> « Experiments <% end %>

<%= @experiment.name %>

<% if @experiment.description %>

<%= @experiment.description %>

<% end %> <% @memberships.each do |membership| %> <% end %>
Participant Variant Converted Started
<%= link_to membership.participant, participant_path(membership.participant) %> <%= membership.variant %> <% converted = false %> <% @experiment.goals.each do |goal| %> <% if @events[[membership.id, goal]] %> <% converted = true %>
<% if @experiment.multiple_goals? %> <%= goal.titleize %> <% end %>
<% end %> <% end %> <% if !converted && membership.try(:converted) %> <% end %>
<% 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 %>

<% unless @page == 1 %> <%= link_to experiment_path(@experiment.id, page: @page - 1) do %> « Prev <% end %> <% end %> <% if @memberships.size == @per_page %> <%= link_to experiment_path(@experiment.id, page: @page + 1) do %> Next » <% end %> <% end %>