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 %}