r91009 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91008‎ | r91009 | r91010 >
Date:21:23, 28 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
updated django templates for test application of BAR
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/index.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_banner.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_bannerlp.html (added) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_lp.html (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_lp.html
@@ -5,8 +5,8 @@
66 <h1><u>{{ utm_campaign }}: Test Report</u></h1>
77 <u>The winning banner is <b>{{ winner }}</b>.</u><br><br>
88 {% if winner != 'inconclusive' %}
9 - The winner, {{ winner_dpv }}, had a {{ percent_win_dpv }}% increase in donations / view on average. {{ conf_dpv }}<br>
10 - The winner, {{ winner_apv }}, had a {{ percent_win_apv }}% increase in amount50 / view on average. {{ conf_apv }}<br>
 9+ The winner, {{ winner }}, had a {{ percent_win_dpv }}% increase in donations / view on average. {{ conf_dpv }}<br>
 10+ The winner, {{ winner }}, had a {{ percent_win_apv }}% increase in amount50 / view on average. {{ conf_apv }}<br>
1111 {% endif %}
1212
1313 <br>
@@ -16,7 +16,7 @@
1717 {{ summary_table|safe }}
1818 <br>
1919 {% for key, value in metric_names_full.items %}
20 - <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_LP_{{ key }}.png" type="image/png"></OBJECT>
 20+ <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_lp_{{ key }}.png" type="image/png"></OBJECT>
2121 <br><p>{{ value }} measure over {{ sample_interval }} minute intervals.</p><br>
2222 {% endfor %}
2323
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_bannerlp.html
@@ -0,0 +1,61 @@
 2+{% extends "base.html" %}
 3+{% block content %}
 4+
 5+
 6+<h1><u>{{ utm_campaign }}: Test Report</u></h1>
 7+<h3><u>The winning banner is <b>{{ winner }}</b>.</u></h3><br><br>
 8+{% if winner != 'inconclusive' %}
 9+ The winner, {{ winner }}, had a {{ percent_win_dpi }}% increase in donations / impression on average. {{ conf_dpi }}<br>
 10+ The winner, {{ winner }}, had a {{ percent_win_api }}% increase in amount50 / impression on average. {{ conf_api }}<br>
 11+ The winner, {{ winner }}, had a {{ percent_win_cr }}% increase in click rate on average. {{ conf_cr }}<br>
 12+{% endif %}
 13+
 14+<br>
 15+
 16+<u><h3>{{ utm_campaign }} -- Test Results:</h3></u><br>
 17+<br>
 18+{{ summary_table|safe }}
 19+<br>
 20+{% for key, value in metric_names_full.items %}
 21+ <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_bannerlp_{{ key }}.png" type="image/png"></OBJECT>
 22+ <br><p>{{ value }} measure over {{ sample_interval }} minute intervals.</p><br>
 23+{% endfor %}
 24+
 25+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_campaign_views.png" type="image/png"></OBJECT>
 26+<br><p>Campaign views / minute.</p><br>
 27+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_campaign_donations.png" type="image/png"></OBJECT>
 28+<br><p>Campaign donations / minute.</p><br>
 29+
 30+<h3><u>Confidence Reporting</u></h3>
 31+
 32+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_conf_don_per_imp.png" type="image/png"></OBJECT>
 33+<br><p>Student's T model, donations / impression.</p><br>
 34+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_conf_amt50_per_imp.png" type="image/png"></OBJECT>
 35+<br><p>Student's T model, amount50 / impression.</p><br>
 36+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_conf_click_rate.png" type="image/png"></OBJECT>
 37+<br><p>Student's T model, click rate.</p><br>
 38+
 39+<h3><u>Additional Comments</u></h3>
 40+
 41+<!-- Cbegin -->
 42+<!-- Cend -->
 43+<br><br>
 44+<!-- Add a comment Form -->
 45+<form action="/tests/report/comment/{{ utm_campaign }}" method="post">
 46+{% csrf_token %}
 47+<textarea name="comments" cols="40" rows="5">
 48+Enter your comments here...
 49+</textarea><br>
 50+<input type="submit" value="Submit" />
 51+</form>
 52+<br><br><br>
 53+<u>Return to:</u>
 54+<br><br>
 55+<a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a>
 56+<br><br>
 57+<a href="https://www.mediawiki.org/tests">Test Generation</a>
 58+<br><br>
 59+<a href="https://www.mediawiki.org/">Home</a>
 60+<br>
 61+
 62+{% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_banner.html
@@ -7,6 +7,7 @@
88 {% if winner != 'inconclusive' %}
99 The winner, {{ winner }}, had a {{ percent_win_dpi }}% increase in donations / impression on average. {{ conf_dpi }}<br>
1010 The winner, {{ winner }}, had a {{ percent_win_api }}% increase in amount50 / impression on average. {{ conf_api }}<br>
 11+ The winner, {{ winner }}, had a {{ percent_win_cr }}% increase in click rate on average. {{ conf_cr }}<br>
1112 {% endif %}
1213
1314 <br>
@@ -31,6 +32,8 @@
3233 <br><p>Student's T model, donations / impression.</p><br>
3334 <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_conf_amt50_per_imp.png" type="image/png"></OBJECT>
3435 <br><p>Student's T model, amount50 / impression.</p><br>
 36+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_conf_click_rate.png" type="image/png"></OBJECT>
 37+<br><p>Student's T model, click rate.</p><br>
3538
3639 <h3><u>Additional Comments</u></h3>
3740
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/index.html
@@ -2,26 +2,22 @@
33 {% extends "base.html" %}
44 {% block content %}
55
6 -<h1>Generate a new test:</h1>
 6+<h1>Generate a new test:</h1><br>
77
8 -
98 <form action="/tests/build_test" method="post">
109 {% csrf_token %}
1110 <label for="test_name">
1211 <pre>TEST NAME: </pre>
1312 </label>
1413 <input type="text" name="test_name" />
15 -<br/>
1614 <label for="utm_campaign">
1715 <pre>UTM CAMPAIGN: </pre>
1816 </label>
1917 <input type="text" name="utm_campaign" />
20 -<br/>
2118 <label for="start_time">
2219 <pre>START TIMESTAMP: </pre>
2320 </label>
24 - <input type="text" name="start_time" />
25 -<br/>
 21+<input type="text" name="start_time" />
2622 <label for="end_time">
2723 <pre>END TIMESTAMP: </pre>
2824 </label>
@@ -61,6 +57,20 @@
6258
6359 </table>
6460
 61+<br>
 62+<form action="/tests" method="post">
 63+{% csrf_token %}
 64+<label for="min_donations">
 65+<h5>Minimum Donations: </h5>
 66+</label>
 67+<input type="text" name="min_donations" value="{{min_donations}}" />
 68+<label for="min_donations">
 69+<h5>Start UTC Timestamp: </h5>
 70+</label>
 71+<input type="text" name="utc_ts" value="{{earliest_utc}}"/>
 72+<input type="submit" value="Filter" />
 73+</form>
 74+
6575 <br><br><br>
6676 <u>Go to:</u>
6777 <br><br>

Status & tagging log