2020-11-25 12:08:07 +01:00
|
|
|
{% extends "main.html" %}
|
|
|
|
|
|
|
|
{% block title %}Statistics{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
|
|
{% for weeks in stats['weeks'] %}
|
2020-11-25 15:27:34 +01:00
|
|
|
<h2> Week: {{ weeks['week'] }}</h2>
|
|
|
|
<div class="table-responsive">
|
2020-11-25 12:08:07 +01:00
|
|
|
<table id="table" class="table" style="width:96%">
|
2020-11-25 15:27:34 +01:00
|
|
|
<thead>
|
2020-11-25 12:08:07 +01:00
|
|
|
<tr>
|
|
|
|
<th>Submissions</th>
|
|
|
|
<th>Submissions with redirects</th>
|
|
|
|
<th>Redirects</th>
|
2020-11-26 22:26:22 +01:00
|
|
|
<th>Unique urls (including redirects)</th>
|
|
|
|
<th>Unique domains (including redirects)</th>
|
2020-11-25 12:08:07 +01:00
|
|
|
</tr>
|
2020-11-25 15:27:34 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-11-25 12:08:07 +01:00
|
|
|
<tr>
|
2020-11-25 15:27:34 +01:00
|
|
|
<td> {{ weeks['analysis'] }} </td>
|
|
|
|
<td> {{ weeks['analysis_with_redirects'] }} </td>
|
|
|
|
<td> {{ weeks['redirects'] }} </td>
|
|
|
|
<td> {{ weeks['uniq_urls'] }} </td>
|
|
|
|
<td> {{ weeks['uniq_domains'] }} </td>
|
2020-11-25 12:08:07 +01:00
|
|
|
</tr>
|
2020-11-25 15:27:34 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-11-25 12:08:07 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2020-11-25 15:27:34 +01:00
|
|
|
{% for name, dict_ in stats['years'].items() %}
|
|
|
|
<h2>Year: {{ name }}</h2>
|
|
|
|
<ul>
|
|
|
|
<li><b>Total analysis</b>: {{ dict_['yearly_analysis'] }}</li>
|
|
|
|
<li><b>Total redirects</b>: {{ dict_['yearly_redirects'] }}</li>
|
|
|
|
</ul>
|
2020-11-25 12:08:07 +01:00
|
|
|
<div>
|
2020-11-25 15:27:34 +01:00
|
|
|
{% for monthnumber, month in dict_.items() %}
|
2020-11-25 12:08:07 +01:00
|
|
|
{% if monthnumber is number %}
|
2020-11-25 15:27:34 +01:00
|
|
|
<h4>{{ month_name(monthnumber) }}</h4>
|
|
|
|
<div class="table-responsive">
|
2020-11-25 12:08:07 +01:00
|
|
|
<table id="table" class="table" style="width:96%">
|
2020-11-25 15:27:34 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Submissions</th>
|
|
|
|
<th>Submissions with redirects</th>
|
|
|
|
<th>Redirects</th>
|
2020-11-26 22:26:22 +01:00
|
|
|
<th>Unique urls (including redirects)</th>
|
|
|
|
<th>Unique domains (including redirects)</th>
|
2020-11-25 15:27:34 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td> {{ month['analysis'] }} </td>
|
|
|
|
<td> {{ month['analysis_with_redirects'] }} </td>
|
|
|
|
<td> {{ month['redirects'] }} </td>
|
|
|
|
<td> {{ month['uniq_urls'] }} </td>
|
|
|
|
<td> {{ month['uniq_domains'] }} </td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-11-25 12:08:07 +01:00
|
|
|
{% endif %}
|
2020-11-25 15:27:34 +01:00
|
|
|
{% endfor %}
|
2020-11-25 12:08:07 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2020-11-26 22:26:22 +01:00
|
|
|
<div class='graphs'></div>
|
|
|
|
{% endblock %}
|
2020-11-25 20:17:36 +01:00
|
|
|
|
2020-11-26 22:26:22 +01:00
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
<script src='{{ url_for('static', filename='d3.v6.min.js') }}'></script>
|
|
|
|
<script src='{{ url_for('static', filename='stats_graph.js') }}'></script>
|
2020-11-25 12:08:07 +01:00
|
|
|
{% endblock %}
|
2020-11-27 09:56:39 +01:00
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{ super() }}
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='stats.css') }}">
|
|
|
|
{% endblock %}
|