Sha256: 0b77c65442be5e979b3969c9e13a53fa8d7c840f0b7dbfa73d7b252cab9359b0

Contents?: true

Size: 883 Bytes

Versions: 6

Compression:

Stored size: 883 Bytes

Contents

<h3><%=vanity_h experiment.name %> <span class="type">(<%= experiment.class.friendly_name %>)</span></h3>
<%= experiment.description.to_s.split(/\n\s*\n/).map { |para| vanity_html_safe(%{<p class="description">#{vanity_h para}</p>}) }.join.html_safe %>
<% if flash.notice %>
  <p>
    <%= flash.notice %>
  </p>
<% end %>
<a class="button reset" title="<%= I18n.t('vanity.reset') %>" href="#" data-id="<%= experiment.id %>" data-url="<%= url_for(:action=>:reset, :e=>experiment.id) %>"><%= I18n.t 'vanity.reset' %></a>
<%= render :file => Vanity.template("_" + experiment.type), :locals => {:experiment => experiment} %>
<p class="meta">
  <%= I18n.t('vanity.started_at', :timestamp=>I18n.l(experiment.created_at, :format=>'%a, %b %d')) %>
  <%= ' | '+I18n.t('vanity.completed_at', :timestamp=>I18n.l(experiment.completed_at, :format=>'%a, %b %d')) unless experiment.active? %>
</p>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vanity-2.0.1 lib/vanity/templates/_experiment.erb
vanity-2.0.0 lib/vanity/templates/_experiment.erb
vanity-2.0.0.beta9 lib/vanity/templates/_experiment.erb
vanity-2.0.0.beta8 lib/vanity/templates/_experiment.erb
vanity-2.0.0.beta7 lib/vanity/templates/_experiment.erb
vanity-2.0.0.beta6 lib/vanity/templates/_experiment.erb