Sha256: 9b8a1210df3320ced302e612ab312a2a486a7ef15579807543c68b468289a9d9

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

<ul class="experiments">
  <% experiments.sort_by(&:created_at).each do |experiment| %>
    <li class="experiment" id="experiment_<%= CGI.escape experiment.id.to_s %>">
      <h2 class="<%= experiment.type %>"><%= CGI.escape_html experiment.name %> <span class="type">(<%= experiment.class.friendly_name %>)</span></h2>
      <p class="description"><%= CGI.escape_html experiment.description.to_s %></p>
      <%= render Vanity.template("ab_test"), experiment: experiment %>
      <p class="meta">Started <%= experiment.created_at.strftime("%a, %b %-d %Y") %>
        <%= " | Completed #{experiment.completed_at.strftime("%a, %b %-d %Y")}" unless experiment.active? %>
      </p>
    </li>
  <% end %>
</ul>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vanity-0.3.1 lib/vanity/templates/_experiments.erb
vanity-0.3.0 lib/vanity/templates/_experiments.erb