2018-04-11 15:31:34 +02:00
|
|
|
{% extends "main.html" %}
|
|
|
|
|
2018-05-31 15:48:11 +02:00
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2018-08-03 18:04:35 +02:00
|
|
|
{% block title %}
|
|
|
|
Ranking - {{ asn }}
|
|
|
|
{% endblock %}
|
2018-04-11 15:31:34 +02:00
|
|
|
|
2018-05-31 15:48:11 +02:00
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
<script src='{{ url_for('static', filename='linegraph.js') }}'></script>
|
2018-07-27 14:33:25 +02:00
|
|
|
<script>linegraph('/asn_history');</script>
|
2018-05-31 15:48:11 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-11 15:31:34 +02:00
|
|
|
{% block content %}
|
|
|
|
<center>
|
|
|
|
<h1>Ranking - {{asn}}</h1></br></br>
|
2018-08-03 18:04:35 +02:00
|
|
|
<button data-html="true" type="button" class="btn btn-secondary" data-container="body"
|
|
|
|
data-toggle="popover" data-placement="bottom"
|
|
|
|
data-content="<center><b>sum</b>(IP * weight of the list) </br><hr><b>sum</b>(IP in the prefix)</center>">
|
|
|
|
<h4>How is this ranking computed?</h4>
|
|
|
|
</button>
|
2018-04-11 15:31:34 +02:00
|
|
|
</center>
|
2018-06-01 17:13:56 +02:00
|
|
|
{% include ['top_forms.html'] %}
|
2018-06-07 16:52:05 +02:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>Timestamp</th>
|
|
|
|
<th>ASN Description</th>
|
|
|
|
</tr>
|
|
|
|
{% for timestamp in asn_descriptions.keys()|sort %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ timestamp }}</td>
|
|
|
|
<td>{{ asn_descriptions[timestamp] }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-04-11 15:31:34 +02:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>Prefix</th>
|
|
|
|
<th>Rank</th>
|
|
|
|
</tr>
|
|
|
|
{% for prefix, rank in ranks %}
|
|
|
|
<tr>
|
2018-06-01 17:13:56 +02:00
|
|
|
<td><a href="{{ url_for('asn_details', asn=asn, prefix=prefix) }}">{{ prefix }}</a></td>
|
2018-04-11 15:31:34 +02:00
|
|
|
<td>{{ rank }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-05-31 17:37:35 +02:00
|
|
|
<canvas width="960" height="500"></canvas>
|
2018-06-01 17:13:56 +02:00
|
|
|
{% if prefix_ips %}
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>IP</th>
|
|
|
|
<th>Source(s)</th>
|
|
|
|
</tr>
|
|
|
|
{% for ip, sources in prefix_ips %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ ip }}</td>
|
|
|
|
<td>{{ ', '.join(sources) }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2018-04-11 15:31:34 +02:00
|
|
|
{% endblock %}
|