+++ /dev/null
-{% extends "base-1.html" %}
-
-{% block title %}{{ _("Mirror %s") % item.hostname }}{% end block %}
-
-{% block body %}
- <div class="page-header">
- {% if item.state == "UP" %}
- <span class="label label-success pull-right">{{ _("Up") }}</span>
- {% elif item.state == "DOWN" %}
- <span class="label label-failure pull-right">{{ _("Down") }}</span>
- {% elif item.state == "OUTOFSYNC" %}
- <span class="label label-warning pull-right">{{ _("Out of sync") }}</span>
- {% else %}
- <span class="label label-info pull-right">{{ _("Unknown") }}</span>
- {% end %}
-
- <h1>{{ item.hostname }}</h1>
- </div>
-
- <table class="table">
- <tr>
- <td>{{ _("Last update") }}</td>
- <td>{{ locale.format_date(item.last_update, full_format=True) }}</td>
- </tr>
- <tr>
- <td>{{ _("Owner") }}</td>
- <td>{{ item.owner }}</td>
- </tr>
- {% if item.prefer_for_countries %}
- <tr>
- <td>{{ _("Preferred for") }}</td>
- <td>{{ locale.list(item.prefer_for_countries_names) }}</td>
- </tr>
- {% end %}
- {% if client_distance %}
- <tr>
- <td>{{ _("Your distance to this mirror") }}</td>
- <td>{{ "%.1f km" % client_distance }}</td>
- </tr>
- {% end %}
- </table>
-
- <a class="btn pull-right" href="{{ item.url }}">{{ _("Go to mirror") }}</a>
-
- <br style="clear: both;">
- <hr>
-
- <h3>{{ _("Mirror location") }}</h3>
- <p>
- {{ _("The mirror <em>%s</em> is located in %s.") % (item.hostname, item.location_str) }}
- </p>
-
- {% if item.longitude and item.latitude %}
- <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
- src="http://www.openstreetmap.org/export/embed.html?bbox={{ item.longitude - 4 }},{{ item.latitude - 4 }},{{ item.longitude + 4 }},{{ item.latitude + 4 }}&layer=mapquest&marker={{ item.latitude }},{{ item.longitude }}" style="border: 1px solid black">
- </iframe>
- <p>
- <a href="http://www.openstreetmap.org/?lat={{ item.latitude }}&lon={{ item.longitude }}&zoom=8&layers=M&mlat={{ item.latitude }}&mlon={{ item.longitude }}" target="_blank">{{ _("View larger map") }}</a>
- -
- © <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> contributors, CC-BY-SA
- </p>
- <p class="muted ac">
- {{ _("The location of the mirror server is estimated by the IP address.") }}
- </p>
- {% else %}
- {{ _("The location of the mirror server could not be estimated.") }}
- {% end %}
-{% end block %}