]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/templates/modules/mirrors-table.html
Website update.
[ipfire.org.git] / www / templates / modules / mirrors-table.html
index f39b074b54f84dd4da4b1097866a6ea854642620..e59502036d71d33649a5fec02fb68902ebf10b31 100644 (file)
@@ -1,15 +1,32 @@
-<table class="mirrors">
+<table class="table table-striped">
        {% for mirror in mirrors %}
                <tr>
-                       <td class="hostname {{ mirror.state.lower() }}">
+                       {% if mirror.state == "UP" %}
+                               <td style="background-color: green;">
+                                       &nbsp;
+                               </td>
+                       {% elif mirror.state == "DOWN" %}
+                               <td style="background-color: red;">
+                                       &nbsp;
+                               </td>
+                       {% elif mirror.state == "OUTOFSYNC" %}
+                               <td style="background-color: yellow;">
+                                       &nbsp;
+                               </td>
+                       {% else %}
+                               <td style="background-color: grey;">
+                                       &nbsp;
+                               </td>
+                       {% end %}
+                       <td>
                                <a href="/mirror/{{ mirror.id }}">{{ mirror.hostname }}</a>
                        </td>
                        <td>
+                               {{ mirror.owner }}
+                               <br>
                                <img src="{{ static_url("images/flags/%s.png" % mirror.country_code) }}" alt="{{ mirror.country_code }}" />
                                {{ mirror.location_str }}
                        </td>
                </tr>
        {% end %}
 </table>
-<br class="clear" />
-