-{% 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> </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"> </td>
- </tr>
- <tr class="legend">
- <td><strong>{{ _("Legend") }}:</strong></td>
- <td colspan="3" class="ok">{{ _("Server is okay") }}</td>
- </tr>
- <tr class="legend">
- <td> </td>
- <td colspan="3" class="outdated">{{ _("Server is outdated") }}</td>
- </tr>
</table>
<br class="clear" />