mirror of https://github.com/CIRCL/lookyloo
91 lines
2.5 KiB
HTML
91 lines
2.5 KiB
HTML
{% extends "main.html" %}
|
|
|
|
{% block title %}Statistics{% endblock %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
{% for week in stats['weeks'] %}
|
|
<h2> Week: {{ week['week_number'] }}</h2>
|
|
<div class="table-responsive">
|
|
<table id="table" class="table" style="width:96%">
|
|
<thead>
|
|
<tr>
|
|
<th>Submissions</th>
|
|
<th>Submissions with redirects</th>
|
|
<th>Redirects</th>
|
|
<th>Unique urls (including redirects)</th>
|
|
<th>Unique domains (including redirects)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td> {{ week['submissions'] }} </td>
|
|
<td> {{ week['submissions_with_redirects'] }} </td>
|
|
<td> {{ week['redirects'] }} </td>
|
|
<td> {{ week['uniq_urls'] }} </td>
|
|
<td> {{ week['uniq_domains'] }} </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div>
|
|
{% for year in stats['years'] %}
|
|
<h2>Year: {{ year['year'] }}</h2>
|
|
<ul>
|
|
<li><b>Total submissions</b>: {{ year['yearly_submissions'] }}</li>
|
|
<li><b>Total redirects</b>: {{ year['yearly_redirects'] }}</li>
|
|
</ul>
|
|
<div>
|
|
<div class="table-responsive">
|
|
<table id="table" class="table" style="width:96%">
|
|
<thead>
|
|
<tr>
|
|
<th>Month</th>
|
|
<th>Submissions</th>
|
|
<th>Submissions with redirects</th>
|
|
<th>Redirects</th>
|
|
<th>Unique urls (including redirects)</th>
|
|
<th>Unique domains (including redirects)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for month in year['months'] %}
|
|
<tr>
|
|
<td> {{ month_name(month['month_number']) }} </td>
|
|
<td> {{ month['submissions'] }} </td>
|
|
<td> {{ month['submissions_with_redirects'] }} </td>
|
|
<td> {{ month['redirects'] }} </td>
|
|
<td> {{ month['uniq_urls'] }} </td>
|
|
<td> {{ month['uniq_domains'] }} </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class='graphs'></div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src='{{ url_for('static', filename='d3.v7.min.js') }}'
|
|
integrity="{{get_sri('static', 'd3.v7.min.js')}}"
|
|
crossorigin="anonymous"></script>
|
|
<script src='{{ url_for('static', filename='stats_graph.js') }}'
|
|
integrity="{{get_sri('static', 'stats_graph.js')}}"
|
|
crossorigin="anonymous"></script>
|
|
{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='stats.css') }}"
|
|
integrity="{{get_sri('static', 'stats.css')}}"
|
|
crossorigin="anonymous">
|
|
{% endblock %}
|