You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{% extends 'layout.html' %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load bw %}
|
|
|
|
{% block content %}
|
|
<div class="pure-g content">
|
|
<div class="pure-u-1 pure-u-xl-2-3" id="gateways">
|
|
<h2>{% trans 'Our Servers' %}</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr><td>{% trans 'Location' %}</td>
|
|
<td>{% trans 'Hostname' %}</td>
|
|
<td>{% trans 'Load' %}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for country, d in locations %}
|
|
<tr><td class="left">{{ d.country_name }}</td>
|
|
<td class="left host_line">
|
|
<span class="host_name">{{ d.hostname }}</span>
|
|
</td>
|
|
<td class="right">
|
|
<span class="bandwidth">
|
|
<span class="inner {% if d.load_percent > 75 %}high{% endif %}" style="width: {{d.load_percent}}%"></span>
|
|
<span class="label">
|
|
{{ d.load_percent }}%
|
|
of
|
|
{{ d.bandwidth|bwformat }}
|
|
</span>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" src="/static/ping.js"></script>
|
|
|
|
{% endblock %}
|