Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (59 sloc) 2.409 kb
{% extends "layout.html" %}
{% block body %}
<script type="text/javascript">
var experiments = {{ experiments|list|tojson|safe }};
</script>
<div id="archive-notice">
<p class="archive-is-not-active"><i class="icon-eye-open icon-white"></i>&nbsp; <span>ARCHIVED EXPERIMENTS INCLUDED</span> <a href="{{ url_for('hello') }}" class="btn btn-inverse">Hide</a> </p>
<p class="archive-is-active"><i class="icon-eye-close icon-white"></i>&nbsp; <span>ARCHIVED EXPERIMENTS NOT INCLUDED</span> <a href="{{ url_for('hello', include_archived=True) }}" class="btn btn-inverse">Show</a></p>
</div>
<div id="dashboard-page">
<ul class="experiments"></ul>
<div id="no-data">
<h2>Oh No.</h2>
<p>It seems you haven't created any experiments, yet. To do this simply make a <code>GET</code> request to your sixpack server's 'participate' endpoint.</p>
<pre><code>$ curl <span id="base-domain">http://127.0.0.1:5000</span>/participate?experiment=new-header&amp;alternatives=red&amp;alternatives=blue&amp;client_id=&lt;A UNIQUIE CLIENT ID&gt;</code></pre>
</div>
</div>
<script type="text/template" id="experiment-template">
<div class="header">
<h3 class="name">
<a href="/experiment/<%- experiment.name %>"><%- experiment.name %></a>
</h3>
<% if (experiment.description) { %>
<h4><%- experiment.description %></h4>
<% } %>
</div>
<div class="clearfix"></div>
<table>
<tbody>
<tr>
<th>Case</th>
<th>Participants</th>
<th>Conv Rate</th>
<th>Confidence</th>
</tr>
<% _.each(experiment.alternatives, function (alt, index) { %>
<tr class="<%- experiment.name %>-line-<%- index %>">
<td>
<span class="circle color-<%- (index + 1) %>">
<% if (alt.is_winner) { %>
<i class="icon-ok"></i>
<% } %>
</span>
<%- alt.name %>
<% if (alt.is_control) { %>
<span class="note control">control</span>
<% } %>
</td>
<td><%- alt.participant_count %></td>
<td><%- alt.conversion_rate %></td>
<td><span title="<%- alt.z_score %>"><%- alt.confidence_level %><span></td>
</tr>
<% }); %>
</tbody>
</table>
<div id="chart-<%- experiment.name %>" class="chart" data-experiment="<%-experiment.name %>">
</div>
</script>
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.