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

51 lines
1.7 KiB
HTML
Raw Normal View History

{% extends "main.html" %}
{% block title %}BGP Ranking{% endblock %}
{% block content %}
<center>
<h1>BGP Ranking</h1></br></br>
</center>
2018-04-12 18:09:04 +02:00
<p>
<form style="width:300px; display:inline-block;" action="" method=post>
<input name="date" type="date" value="{{ date }}">
<input type="submit" value="Set date">
</form>
<form style="width:300px; display:inline-block;" action="" method=post>
<select name="ipversion">
<option value="v4" {% if ipversion == 'v4' %} selected="selected"{% endif %}>v4</option>
<option value="v6" {% if ipversion == 'v6' %} selected="selected"{% endif %}>v6</option>
</select>
<input type="submit" value="Set IP version">
</form>
<form style="width:300px; display:inline-block;" action="" method=post>
<select name="source">
<option value="" {% if not source %} selected="selected"{% endif %}>all</option>
{% for s in sources %}
<option value="{{ s }}" {% if source == s %} selected="selected"{% endif %}>{{ s }}</option>
{% endfor %}
</select>
<input type="submit" value="Set source">
</form>
<p>
<br/>
2018-04-11 16:16:19 +02:00
<form action="{{ url_for('asn_details') }}" method=post>
2018-04-11 15:55:46 +02:00
ASN to search: <input type=number name=asn>
<input type="submit" value="Search">
</form>
2018-04-12 18:09:04 +02:00
<br/>
<table class="table">
<tr>
<th>ASN</th>
<th>Rank</th>
</tr>
{% for asn, rank in ranks %}
<tr>
2018-04-11 15:55:46 +02:00
<td><a href="{{ url_for('asn_details', asn=asn) }}">{{ asn }}</a></td>
2018-04-11 15:31:34 +02:00
<td>{{ rank }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}