Sha256: 805bdf98752cf891795e3cbbb39ac71f45b114d0cab635752636a3cd4f7ae53f
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
<p> <%= link_to root_path do %> « Experiments <% end %> </p> <h1><%= @experiment.name %></h1> <table> <thead> <tr> <th>Participant</th> <th style="width: 20%;">Variant</th> <th style="width: 20%;">Converted</th> <th style="width: 20%;">Started</th> </tr> </thead> <tbody> <% @memberships.each do |membership| %> <tr> <td><%= link_to membership.participant, participant_path(membership.participant) %></td> <td><%= membership.variant %></td> <td> <% if membership.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
field_test-0.2.0 | app/views/field_test/experiments/show.html.erb |