Skip to content

Commit

Permalink
templates.splango.experiment_goal_report: now showing results in a ta…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
tsolar committed Apr 3, 2013
1 parent 713649a commit 14c3af6
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions splango/templates/splango/experiment_goal_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@ <h3>Experiment: {{ experiment }}</h3>
In ``data`` comes the variant name, the goal records count, and
the percentage represented by the respective goal record.
{% endcomment %}
<h3>Variants:</h3>
<ul>
{% for variant, d in data.items %}
{% with variant_name=d.0 count=d.1 percentage=d.2 %}
<li>
<p>
For variant "{{ variant_name }}" goal "{{ goal.name }}" is
reached {{ count }} times, or {{ percentage }}% of time
</p>
</li>

{% endwith %}
{% endfor %}
</ul>
<table>
<thead>
<th>Variant</th>
<th>Count (times achieved)</th>
<th>%</th>
</thead>
<tbody>
{% for variant, d in data.items %}
<tr class="{% cycle 'row1' 'row2' as rowcolors %}">
{% with variant_name=d.0 count=d.1 percentage=d.2 %}
<td>{{ variant_name }}</td>
<td class="align-right">{{ count }}</td>
<td class="align-right">{{ percentage }}</td>
{% endwith %}
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p><i>No data yet.</i></p>
{% endif %}
Expand Down

0 comments on commit 14c3af6

Please sign in to comment.