Create stats.html

pull/132/head
Fafner [_KeyZee_] 2020-11-25 12:08:07 +01:00 committed by GitHub
parent 17e7701807
commit 76353f0802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{% extends "main.html" %}
{% block title %}Statistics{% endblock %}
{% block content %}
<div>
{% for weeks in stats['weeks'] %}
<h2> Week : {{ weeks['week'] }}</h2>
<table id="table" class="table" style="width:96%">
<tr>
<th>Submissions</th>
<th>Submissions with redirects</th>
<th>Redirects</th>
<th>Uniq urls</th>
<th>Uniq domains</th>
</tr>
<tr>
<th> {{ weeks['analysis'] }} </th>
<th> {{ weeks['analysis_with_redirects'] }} </th>
<th> {{ weeks['redirects'] }} </th>
<th> {{ weeks['uniq_urls'] }} </th>
<th> {{ weeks['uniq_domains'] }} </th>
</tr>
<table>
</br>
{% endfor %}
</div>
<div>
{% for name,dict_ in stats['years'].items() %}
<h2>Year : {{ name }} - Analysis : {{ dict_['yearly_analysis']}} - Redirects : {{ dict_['yearly_redirects'] }}</h2>
<div>
{% for monthnumber,month in dict_.items() %}
{% if monthnumber is number %}
<h3>{{ monthnumber }}</h3>
<table id="table" class="table" style="width:96%">
<tr>
<th>Submissions</th>
<th>Submissions with redirects</th>
<th>Redirects</th>
<th>Uniq urls</th>
<th>Uniq domains</th>
</tr>
<tr>
<th> {{ month['analysis'] }} </th>
<th> {{ month['analysis_with_redirects'] }} </th>
<th> {{ month['redirects'] }} </th>
<th> {{ month['uniq_urls'] }} </th>
<th> {{ month['uniq_domains'] }} </th>
</tr>
<table>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
{% endblock %}