From 76353f0802564654329ee8b0de4ee16e8962b562 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 25 Nov 2020 12:08:07 +0100 Subject: [PATCH] Create stats.html --- website/web/templates/stats.html | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 website/web/templates/stats.html diff --git a/website/web/templates/stats.html b/website/web/templates/stats.html new file mode 100644 index 0000000..b14c314 --- /dev/null +++ b/website/web/templates/stats.html @@ -0,0 +1,59 @@ +{% extends "main.html" %} + +{% block title %}Statistics{% endblock %} + + +{% block content %} +
+{% for weeks in stats['weeks'] %} +

Week : {{ weeks['week'] }}

+ + + + + + + + + + + + + + + +
SubmissionsSubmissions with redirectsRedirectsUniq urlsUniq domains
{{ weeks['analysis'] }} {{ weeks['analysis_with_redirects'] }} {{ weeks['redirects'] }} {{ weeks['uniq_urls'] }} {{ weeks['uniq_domains'] }}
+
+{% endfor %} + + +
+{% for name,dict_ in stats['years'].items() %} +

Year : {{ name }} - Analysis : {{ dict_['yearly_analysis']}} - Redirects : {{ dict_['yearly_redirects'] }}

+
+ {% for monthnumber,month in dict_.items() %} + {% if monthnumber is number %} +

{{ monthnumber }}

+
+ + + + + + + + + + + + + + +
SubmissionsSubmissions with redirectsRedirectsUniq urlsUniq domains
{{ month['analysis'] }} {{ month['analysis_with_redirects'] }} {{ month['redirects'] }} {{ month['uniq_urls'] }} {{ month['uniq_domains'] }}
+ {% endif %} + {% endfor %} + +{% endfor %} + + +{% endblock %}