- remove http only in login.html - extract PeeringManager into separate file - add "progress meter" for "used" to "available" peerings
25 lines
660 B
HTML
25 lines
660 B
HTML
{% extends 'base.html' %} {% block content %}
|
|
<div></div>
|
|
<div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>NodeName</th>
|
|
<th>Country</th>
|
|
<th>City</th>
|
|
<th>peerings</th>
|
|
<th>Peer!</th>
|
|
</tr>
|
|
</thead>
|
|
{% for node in config["nodes"] %}
|
|
<tr>
|
|
<td>{{node}}</td>
|
|
<td>{{config["nodes"][node]["country"]}}</td>
|
|
<td>{{config["nodes"][node]["city"]}}</td>
|
|
<td><progress value="{{peerings.amount_by_node(node)}}" max="{{config['nodes'][node]['capacity']}}"></progress></td>
|
|
<td><a href="peerings/new?node={{node}}">peer</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|