]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/templates/mirrors-item.html
Move everything to the root of the repository.
[ipfire.org.git] / www / templates / mirrors-item.html
diff --git a/www/templates/mirrors-item.html b/www/templates/mirrors-item.html
deleted file mode 100644 (file)
index cc375a2..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-{% 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 }}&amp;layer=mapquest&amp;marker={{ item.latitude }},{{ item.longitude }}" style="border: 1px solid black">
-               </iframe>
-               <p>
-                       <a href="http://www.openstreetmap.org/?lat={{ item.latitude }}&amp;lon={{ item.longitude }}&amp;zoom=8&amp;layers=M&amp;mlat={{ item.latitude }}&amp;mlon={{ item.longitude }}" target="_blank">{{ _("View larger map") }}</a>
-                       -
-                       &copy; <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 %}