BGP-Ranking/website/web/templates/asn.html

48 lines
1.1 KiB
HTML
Raw Normal View History

2018-04-11 15:31:34 +02:00
{% extends "main.html" %}
2018-05-31 15:48:11 +02:00
{% block head %}
{{ super() }}
{% endblock %}
2018-04-11 15:31:34 +02:00
{% block title %}Ranking - {{ asn }}{% endblock %}
2018-05-31 15:48:11 +02:00
{% block scripts %}
{{ super() }}
<script src='{{ url_for('static', filename='linegraph.js') }}'></script>
{% endblock %}
2018-04-11 15:31:34 +02:00
{% block content %}
<center>
<h1>Ranking - {{asn}}</h1></br></br>
</center>
2018-06-01 17:13:56 +02:00
{% include ['top_forms.html'] %}
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 %}