summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThayer Williams <thayerw@gmail.com>2010-03-16 19:36:19 +0100
committerDan McGee <dan@archlinux.org>2010-05-17 21:49:44 +0200
commit08f886380ca53a9fade73fd3079a968f27316f74 (patch)
tree2cb544d8b3dcd8afa56d39187907dfbdf4fb5998
parent7657c5978269a9b8c734a58ec197159e70678ebf (diff)
downloadarchweb-08f886380ca53a9fade73fd3079a968f27316f74.tar.gz
archweb-08f886380ca53a9fade73fd3079a968f27316f74.tar.xz
Redesigned dev mirrorlist page, proper django cycling, semantics
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/devel/mirrorlist.html66
1 files changed, 37 insertions, 29 deletions
diff --git a/templates/devel/mirrorlist.html b/templates/devel/mirrorlist.html
index bd09d7f..5084cca 100644
--- a/templates/devel/mirrorlist.html
+++ b/templates/devel/mirrorlist.html
@@ -2,34 +2,42 @@
{% block title %}Arch Linux - Mirror Overview{% endblock %}
{% block content %}
-<div class="greybox">
- <table class="results" width="100%">
- <tr>
- <th>Name</th>
- <th>Tier</th>
- <th>Country</th>
- <th>Admin Email</th>
- <th>Public</th>
- <th>Active</th>
- <th>ISOs</th>
- <th>Protocols</th>
- <th>Rsync IPs</th>
- <th>Notes</th>
- </tr>
- {% for mirror in mirror_list %}
- <tr>
- <td>{{mirror.name}}</td>
- <td>{{mirror.get_tier_display}}</td>
- <td>{{mirror.country}}</td>
- <td>{{mirror.admin_email}}</td>
- <td>{{mirror.public|yesno}}</td>
- <td>{{mirror.active|yesno}}</td>
- <td>{{mirror.isos|yesno}}</td>
- <td>{{mirror.supported_protocols}}</td>
- <td>{{mirror.rsync_ips.count}}</td>
- <td>{{mirror.notes}}</td>
- </tr>
- {% endfor %}
- </table>
+<div id="dev-mirrorlist" class="box">
+
+ <h2>Mirror List</h2>
+
+ <table class="results">
+ <thead>
+ <tr>
+ <th>Server</th>
+ <th>Tier</th>
+ <th>Country</th>
+ <th>Admin Email</th>
+ <th>Public</th>
+ <th>Active</th>
+ <th>ISOs</th>
+ <th>Protocols</th>
+ <th>Rsync IPs</th>
+ <th>Notes</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for mirror in mirror_list %}
+ <tr class="{% cycle 'odd' 'even' %}">
+ <td>{{mirror.name}}</td>
+ <td>{{mirror.get_tier_display}}</td>
+ <td>{{mirror.country}}</td>
+ <td>{{mirror.admin_email}}</td>
+ <td>{{mirror.public|yesno}}</td>
+ <td>{{mirror.active|yesno}}</td>
+ <td>{{mirror.isos|yesno}}</td>
+ <td class="wrap">{{mirror.supported_protocols}}</td>
+ <td>{{mirror.rsync_ips.count}}</td>
+ <td class="wrap">{{mirror.notes}}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
</div>
{% endblock %}