2011-04-25 22:27:32 +02:00
|
|
|
{% extends "_base.html" %}
|
|
|
|
|
2012-05-06 20:27:14 +02:00
|
|
|
{% load url from future %}
|
|
|
|
|
2012-11-26 23:39:34 +01:00
|
|
|
{% block css %}
|
|
|
|
{{ block.super }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}css/table.css" media="screen" title="Normal" />
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block javascript %}
|
|
|
|
{{ block.super }}
|
|
|
|
<script type="text/javascript" language="javascript" src="{{STATIC_URL}}js/jquery.js"></script>
|
|
|
|
<script type="text/javascript" language="javascript" src="{{STATIC_URL}}js/jquery.dataTables.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#table').dataTable( {
|
|
|
|
"bPaginate": false,
|
|
|
|
"bInfo": false,
|
|
|
|
"bStateSave": true,
|
|
|
|
"sCookiePrefix": "datatables_"
|
|
|
|
} );
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% block content %}
|
|
|
|
<h2>Statistics</h2>
|
|
|
|
|
2012-11-26 23:39:34 +01:00
|
|
|
<hr />
|
|
|
|
|
|
|
|
<h3>Current statistics</h3>
|
|
|
|
<img alt="pie versions" src="{% url "chart" 'pie-versions' %}" />
|
|
|
|
<img alt="pie packages" src="{% url "chart" 'pie-packages' %}" />
|
|
|
|
|
|
|
|
<h3>All time statistics</h3>
|
|
|
|
|
|
|
|
<img alt="packages weekly" src="{% url "chart" 'packages-weekly' %}" />
|
|
|
|
<img alt="packages monthly" src="{% url "chart" 'packages-monthly' %}" />
|
|
|
|
|
|
|
|
<img alt="versions weekly" src="{% url "chart" 'versions-weekly' %}" />
|
|
|
|
<img alt="versions monthly" src="{% url "chart" 'versions-monthly' %}" />
|
|
|
|
|
|
|
|
<hr />
|
2012-11-26 14:32:39 +01:00
|
|
|
|
|
|
|
<h3>Handlers</h3>
|
2012-11-26 23:39:34 +01:00
|
|
|
<table id="table" class="display">
|
2012-11-26 14:32:39 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2012-11-26 23:39:34 +01:00
|
|
|
<th>Handler</th>
|
2012-11-26 14:32:39 +01:00
|
|
|
<th># of found versions</th>
|
2012-11-26 23:39:34 +01:00
|
|
|
<th>Average confidence</th>
|
2012-11-26 14:32:39 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for handler in handlers %}
|
|
|
|
<tr>
|
2012-11-26 14:55:49 +01:00
|
|
|
<td>
|
2012-11-26 23:39:34 +01:00
|
|
|
<a href="{% url "statistics_handler" handler.handler %}">
|
|
|
|
{{ handler.handler }}
|
2012-11-26 14:55:49 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
2012-11-26 14:32:39 +01:00
|
|
|
<td>{{ handler.n }}</td>
|
|
|
|
<td>{{ handler.avg_conf }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% endblock %}
|