r89353 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89352‎ | r89353 | r89354 >
Date:18:38, 2 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Log Miner Logging django templates
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML (added) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/copy_logs.html (added) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/index.html (added) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/log_list.html (added) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/mine_logs.html (added) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/log_list.html
@@ -0,0 +1,25 @@
 2+
 3+{% extends "base.html" %}
 4+{% block content %}
 5+
 6+<h1>Squid Log Listing:</h1><br>
 7+
 8+<table border="1" cellpadding="10">
 9+<tr>
 10+<th>Filename</th>
 11+</tr>
 12+
 13+{% for lf in log_file_list %}
 14+ <tr>
 15+ <td><a href="https://www.mediawiki.org/LML/mine_logs_process/{{ lf }}">{{ lf }}</a></td> <!-- filename -->
 16+ </tr>
 17+{% endfor %}
 18+</table>
 19+
 20+<br><br><br>
 21+<u>Go to:</u>
 22+<br><br>
 23+<a href="https://www.mediawiki.org/LML">LML</a><br><br>
 24+<a href="https://www.mediawiki.org/">Home</a>
 25+
 26+{% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/mine_logs.html
@@ -0,0 +1,41 @@
 2+
 3+{% extends "base.html" %}
 4+{% block content %}
 5+
 6+<h1>Mine Squid Logs:</h1><br>
 7+
 8+<u><h3>Choose hour of logs to mine:</h3></u>
 9+
 10+<form action="/LML/mine_logs_process" method="post">
 11+{% csrf_token %}
 12+<label for="year">
 13+<pre>YEAR: </pre>
 14+</label>
 15+<input type="text" name="year" value="{{ year }}" />
 16+<br/>
 17+<label for="month">
 18+<pre>MONTH: </pre>
 19+</label>
 20+<input type="text" name="month" value="{{ month }}" />
 21+<br/>
 22+<label for="day">
 23+<pre>DAY: </pre>
 24+</label>
 25+<input type="text" name="day" value="{{ day }}" />
 26+<br/>
 27+<label for="hour">
 28+<pre>HOUR (24HR Format): </pre>
 29+</label>
 30+<input type="text" name="hour" value="{{ hour }}" />
 31+<br/>
 32+<br/>
 33+<input type="submit" value="Copy" />
 34+</form>
 35+
 36+<br><br><br>
 37+<u>Go to:</u>
 38+<br><br>
 39+<a href="https://www.mediawiki.org/LML">LML</a><br><br>
 40+<a href="https://www.mediawiki.org/">Home</a>
 41+
 42+{% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/copy_logs.html
@@ -0,0 +1,41 @@
 2+
 3+{% extends "base.html" %}
 4+{% block content %}
 5+
 6+<h1>Copy Squid Logs:</h1><br>
 7+
 8+<u><h3>Choose hour of logs to copy:</h3></u>
 9+
 10+<form action="/LML/copy_logs_process" method="post">
 11+{% csrf_token %}
 12+<label for="year">
 13+<pre>YEAR: </pre>
 14+</label>
 15+<input type="text" name="year" value="{{ year }}" />
 16+<br/>
 17+<label for="month">
 18+<pre>MONTH: </pre>
 19+</label>
 20+<input type="text" name="month" value="{{ month }}" />
 21+<br/>
 22+<label for="day">
 23+<pre>DAY: </pre>
 24+</label>
 25+<input type="text" name="day" value="{{ day }}" />
 26+<br/>
 27+<label for="hour">
 28+<pre>HOUR (24HR Format): </pre>
 29+</label>
 30+<input type="text" name="hour" value="{{ hour }}" />
 31+<br/>
 32+<br/>
 33+<input type="submit" value="Copy" />
 34+</form>
 35+
 36+<br><br><br>
 37+<u>Go to:</u>
 38+<br><br>
 39+<a href="https://www.mediawiki.org/LML">LML</a><br><br>
 40+<a href="https://www.mediawiki.org/">Home</a>
 41+
 42+{% endblock %}
\ No newline at end of file
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/templates/LML/index.html
@@ -0,0 +1,42 @@
 2+
 3+{% extends "base.html" %}
 4+{% block content %}
 5+
 6+<h1>Log Mining Logs:</h1><br>
 7+<u><h3>Campaign, Donations (>50) </h1></u><br>
 8+
 9+<!-- Table listing all tests run -->
 10+
 11+<table border="1" cellpadding="10">
 12+<tr>
 13+<th>Log Type</th>
 14+<th>Time of Import</th>
 15+<th>Log Start Time</th>
 16+<th>Log End Time</th>
 17+<th>Completion of Log</th>
 18+<th>Total Rows Loaded</th>
 19+</tr>
 20+
 21+{% for row in squid_table %}
 22+ <tr>
 23+ <td>{{ row.0 }}</td> <!-- type -->
 24+ <td>{{ row.1 }}</td> <!-- log_copy_time -->
 25+ <td>{{ row.2 }}</td> <!-- start_time -->
 26+ <td>{{ row.3 }}</td> <!-- end_time -->
 27+ <td>{{ row.4 }}</td> <!-- log_completion_pct -->
 28+ <td>{{ row.5 }}</td> <!-- total_rows -->
 29+ </tr>
 30+{% endfor %}
 31+
 32+</table>
 33+
 34+<br><br><br>
 35+<u>Go to:</u>
 36+<br><br>
 37+<a href="https://www.mediawiki.org/LML/copy_logs_form">Copy Logs</a><br><br>
 38+<a href="https://www.mediawiki.org/LML/log_list">Log List</a><br><br>
 39+<a href="https://www.mediawiki.org/LML/mine_logs_form">Mine Logs</a><br><br>
 40+<a href="https://www.mediawiki.org/">Home</a>
 41+<br>
 42+
 43+{% endblock %}
\ No newline at end of file

Status & tagging log