]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/modules/mirrors-table.html
e59502036d71d33649a5fec02fb68902ebf10b31
[people/shoehn/ipfire.org.git] / templates / modules / mirrors-table.html
1 <table class="table table-striped">
2 {% for mirror in mirrors %}
3 <tr>
4 {% if mirror.state == "UP" %}
5 <td style="background-color: green;">
6 &nbsp;
7 </td>
8 {% elif mirror.state == "DOWN" %}
9 <td style="background-color: red;">
10 &nbsp;
11 </td>
12 {% elif mirror.state == "OUTOFSYNC" %}
13 <td style="background-color: yellow;">
14 &nbsp;
15 </td>
16 {% else %}
17 <td style="background-color: grey;">
18 &nbsp;
19 </td>
20 {% end %}
21 <td>
22 <a href="/mirror/{{ mirror.id }}">{{ mirror.hostname }}</a>
23 </td>
24 <td>
25 {{ mirror.owner }}
26 <br>
27 <img src="{{ static_url("images/flags/%s.png" % mirror.country_code) }}" alt="{{ mirror.country_code }}" />
28 {{ mirror.location_str }}
29 </td>
30 </tr>
31 {% end %}
32 </table>