]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/templates/downloads-mirrors.html
Import of new website.
[ipfire.org.git] / www / templates / downloads-mirrors.html
index 6e1b80567de5b8a828b379d26d4c0cb0671115f0..96cf434689b7173d2c8ecc5f7a6ac694528e17a2 100644 (file)
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "base-1.html" %}
 
 {% block title %}{{ _("Mirror-Server") }}{% end block %}
 
                
                <table class="download-mirrors">
                        <tr>
-                               <th>{{ _("Owner (Hostname)") }}</th>
+                               <th>{{ _("Owner") }}</th>
+                               <th>{{ _("Hostname") }}</th>
                                <th>{{ _("Location") }}</th>
                                <th>{{ _("Last update") }}</th>
-                               <th>{{ _("Contains") }}</th>
+                               <th>&nbsp;</th>
                        </tr>
-                       {% for mirror in mirrors.all %}
-                               <tr class="{{ mirror.html_class() }}">
-                                       <td><a href="{{ mirror.url }}" target="_blank">{{ mirror.owner }} ({{ mirror.hostname }})</a></td>
+                       {% for mirror in mirrors %}
+                               <tr class="{{ mirror.state.lower() }}">
+                                       <td>{{ mirror.owner }}</td>
+                                       <td><a href="{{ mirror.url }}" target="_blank">{{ mirror.hostname }}</a></td>
                                        <td>
-                                               <img src="{{ static_url("images/flags/%s.png" % mirror.location["country_code"]) }}"
-                                                        align="absmiddle" alt="{{ mirror.location["country_code"] }}" />
-                                               {{ mirror.location["country"] }}, {{ mirror.location["city"] }}
+                                               <img src="{{ static_url("images/flags/%s.png" % mirror.country_code) }}"
+                                                        align="absmiddle" alt="{{ mirror.country_code }}" />
+                                               {{ mirror.location }}
                                        </td>
-
-                                       <td class="latency"></td>
-                                       <td class="percentage">{{ mirror.filelist_compare(mirrors.master.files) }}%</td>
+                                       <td>{{ locale.format_date(mirror.last_update) }}</td>
+                                       <td><a href="{{ mirror.id }}">{{ _("details") }}</a></td>
                                </tr>
                        {% end %}
-                       <tr class="legend">
-                               <td colspan="4">&nbsp;</td>
-                       </tr>
-                       <tr class="legend">
-                               <td><strong>{{ _("Legend") }}:</strong></td>
-                               <td colspan="3" class="ok">{{ _("Server is okay") }}</td>
-                       </tr>
-                       <tr class="legend">
-                               <td>&nbsp;</td>
-                               <td colspan="3" class="outdated">{{ _("Server is outdated") }}</td>
-                       </tr>
                </table>
 
                <br class="clear" />