r90446 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90445‎ | r90446 | r90447 >
Date:08:20, 20 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Updated django templates to reflect view definitions
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/index.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/mine_logs.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/base.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/campaigns/index.html (replaced) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/campaigns/show_campaigns.html (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/index.html (modified) (history)
  • /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_lp.html (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/campaigns/show_campaigns.html
@@ -31,7 +31,11 @@
3232 <label for="test_name">
3333 <pre>TEST NAME: </pre>
3434 </label>
35 - <input type="text" name="test_name" />
 35+{% if test_name != '' %}
 36+<input type="text" name="test_name" value="{{ test_name }}" />
 37+{% else %}
 38+<input type="text" name="test_name" value="{{ utm_campaign }}" />
 39+{% endif %}
3640 <br/>
3741 <label for="start_time">
3842 <pre>START TIMESTAMP: </pre>
@@ -42,7 +46,17 @@
4347 <pre>END TIMESTAMP: </pre>
4448 </label>
4549 <input type="text" name="end_time" value="{{ end_time }}"/>
46 -<br><br>
 50+<br/>
 51+<label for="test_type_override">
 52+<pre>Overrride the Test Type? (leave blank if not) </pre>
 53+</label>
 54+<select name="test_type_override">
 55+<option></option>
 56+<option>Banner</option>
 57+<option>Landing Page</option>
 58+<option>Banner and LP</option>
 59+</select>
 60+<br/><br/>
4761 <input type="submit" value="Test" />
4862 </form>
4963
@@ -52,6 +66,8 @@
5367 <a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a>
5468 <br><br>
5569 <a href="https://www.mediawiki.org/tests">Test Generation</a>
 70+<br><br>
 71+<a href="https://www.mediawiki.org/">Home</a>
5672 <br>
5773
5874 {% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/campaigns/index.html
@@ -3,14 +3,14 @@
44 {% block content %}
55
66 <h1>Choose a Campaign:</h1><br>
7 -<u><h3>Campaign, Donations (>50) </h1></u><br>
 7+<u><h3>Report name -- Earliest Access -- Campaign -- Donations -- Report Link </h1></u><br>
88 {% if campaigns %}
99 <ul>
1010 {% for c in campaigns %}
11 - {% if c.4 %}
12 - <li>{{ c.2 }} , {{ c.3 }}, <a href="https://www.mediawiki.org/campaigns/{{ c.0 }}">{{ c.0 }}</a> , {{ c.1 }}, <a href="https://www.mediawiki.org/tests/report/{{ c.0 }}">view report</a></li><br>
 11+ {% if c.5 %}
 12+ <li>{{ c.2 }} -- {{ c.3 }} -- <a href="https://www.mediawiki.org/campaigns/{{ c.0 }}">{{ c.0 }}</a> -- {{ c.4 }} -- <a href="https://www.mediawiki.org/tests/report/{{ c.0 }}">view report</a></li><br>
1313 {% else %}
14 - <li>{{ c.2 }} , {{ c.3 }}, <a href="https://www.mediawiki.org/campaigns/{{ c.0 }}">{{ c.0 }}</a> , {{ c.1 }}</li><br>
 14+ <li>{{ c.2 }} -- {{ c.3 }} -- <a href="https://www.mediawiki.org/campaigns/{{ c.0 }}">{{ c.0 }}</a> -- {{ c.4 }}</li><br>
1515 {% endif %}
1616 {% endfor %}
1717 </ul>
@@ -22,6 +22,8 @@
2323 <u>Go to:</u>
2424 <br><br>
2525 <a href="https://www.mediawiki.org/tests">Test Generation</a>
 26+<br><br>
 27+<a href="https://www.mediawiki.org/">Home</a>
2628 <br>
2729
2830 {% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_lp.html
@@ -5,17 +5,19 @@
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_dpv }} had a {{ percent_win_dpv }}% increase in donations / view on average. {{ conf_dpv }}<br>
10 - The {{ winner_apv }} had a {{ percent_win_apv }}% increase in amount50 / view on average. {{ conf_apv }}<br>
 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>
1111 {% endif %}
1212
1313 <br>
1414
1515 <u><h3>{{ utm_campaign }} -- Test Results:</h3></u><br>
16 -
17 -{% for m in metric_names %}
18 - <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_LP_{{ m }}.png" type="image/png"></OBJECT>
19 - <br><p>Measured minutely {{ m }}.</p><br>
 16+<br>
 17+{{ summary_table|safe }}
 18+<br>
 19+{% 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>
 21+ <br><p>{{ value }} measure over {{ sample_interval }} minute intervals.</p><br>
2022 {% endfor %}
2123
2224 <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_campaign_views.png" type="image/png"></OBJECT>
@@ -49,6 +51,8 @@
5052 <a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a>
5153 <br><br>
5254 <a href="https://www.mediawiki.org/tests">Test Generation</a>
 55+<br><br>
 56+<a href="https://www.mediawiki.org/">Home</a>
5357 <br>
5458
5559 {% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/results_banner.html
@@ -3,22 +3,24 @@
44
55
66 <h1><u>{{ utm_campaign }}: Test Report</u></h1>
7 -<u>The winning banner is <b>{{ winner }}</b>.</u><br><br>
 7+<h3><u>The winning banner is <b>{{ winner }}</b>.</u></h3><br><br>
88 {% if winner != 'inconclusive' %}
9 - The {{ winner_dpi }} had a {{ percent_win_dpi }}% increase in donations / impression on average. {{ conf_dpi }}<br>
10 - The {{ winner_api }} had a {{ percent_win_api }}% increase in amount50 / impression on average. {{ conf_api }}<br>
 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>
1111 {% endif %}
1212
1313 <br>
1414
1515 <u><h3>{{ utm_campaign }} -- Test Results:</h3></u><br>
16 -
17 -{% for m in metric_names %}
18 - <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_banner_{{ m }}.png" type="image/png"></OBJECT>
19 - <br><p>Measured minutely {{ m }}.</p><br>
 16+<br>
 17+{{ summary_table|safe }}
 18+<br>
 19+{% for key, value in metric_names_full.items %}
 20+ <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_banner_{{ key }}.png" type="image/png"></OBJECT>
 21+ <br><p>{{ value }} measure over {{ sample_interval }} minute intervals.</p><br>
2022 {% endfor %}
2123
22 -<OBJECT WIDTH="1000" HEIGHT="600" data="/tests/static/images/{{ utm_campaign }}_campaign_views.png" type="image/png"></OBJECT>
 24+<OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_campaign_views.png" type="image/png"></OBJECT>
2325 <br><p>Campaign views / minute.</p><br>
2426 <OBJECT WIDTH="1000" HEIGHT="600" data="/static/images/{{ utm_campaign }}_campaign_donations.png" type="image/png"></OBJECT>
2527 <br><p>Campaign donations / minute.</p><br>
@@ -49,6 +51,8 @@
5052 <a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a>
5153 <br><br>
5254 <a href="https://www.mediawiki.org/tests">Test Generation</a>
 55+<br><br>
 56+<a href="https://www.mediawiki.org/">Home</a>
5357 <br>
5458
5559 {% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/tests/index.html
@@ -64,7 +64,8 @@
6565 <br><br><br>
6666 <u>Go to:</u>
6767 <br><br>
68 -<a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a>
 68+<a href="https://www.mediawiki.org/campaigns">Latest Campaigns</a><br><br>
 69+<a href="https://www.mediawiki.org/">Home</a>
6970 <br>
7071
7172 {% endblock %}
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/mine_logs.html
@@ -29,7 +29,7 @@
3030 <input type="text" name="hour" value="{{ hour }}" />
3131 <br/>
3232 <br/>
33 -<input type="submit" value="Copy" />
 33+<input type="submit" value="Mine" />
3434 </form>
3535
3636 <br><br><br>
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/index.html
@@ -3,7 +3,7 @@
44 {% block content %}
55
66 <h1>Log Mining Logs:</h1><br>
7 -<u><h3>Campaign, Donations (>50) </h1></u><br>
 7+<h4>The table below is a listing of all of the squid logs that have been mined:</h4><br>
88
99 <!-- Table listing all tests run -->
1010
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/index.html
@@ -3,10 +3,14 @@
44 {% block content %}
55
66 <body>
7 -<h1><u>Fundraiser Reporting</u></h1>
 7+<h1><u>Fundraiser Reporting</u></h1><br>
88
99 <a href="https://www.mediawiki.org/campaigns/">Latest Campaigns</a><br><br>
1010
11 -<a href="https://www.mediawiki.org/tests/">Test Generation</a>
 11+<a href="https://www.mediawiki.org/tests/">Test Generation</a><br><br>
1212
 13+<a href="https://www.mediawiki.org/LML/">Squid Log Mining</a><br><br>
 14+
 15+<a href="https://www.mediawiki.org/live_stats/">Live Results</a>
 16+
1317 {% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/base.html
@@ -3,9 +3,14 @@
44 <html>
55
66 <head>
 7+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
78 <title>{% block title %}Fundraiser Reporting{% endblock %}</title>
89 <link rel="stylesheet" href="https://www.mediawiki.org/static/css/style.css">
9 -<script type="text/javascript" src="/media/jquery-1.2.6.min.js"></script>
 10+<!-- <script type="text/javascript" src="/static/jquery-1.2.6.min.js"></script> -->
 11+<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
 12+<script language="javascript" type="text/javascript" src="/media/js/jquery-1.4.1.js"></script>
 13+<!-- <script language="javascript" type="text/javascript" src="/media/js/flot/jquery.js"></script> -->
 14+<script language="javascript" type="text/javascript" src="/media/js/flot/jquery.flot.js"></script>
1015 </head>
1116
1217 <body>

Status & tagging log