summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/mirrors/mirrors.html (renamed from templates/devel/mirrorlist.html)38
1 files changed, 20 insertions, 18 deletions
diff --git a/templates/devel/mirrorlist.html b/templates/mirrors/mirrors.html
index 9ae65639..253efe53 100644
--- a/templates/devel/mirrorlist.html
+++ b/templates/mirrors/mirrors.html
@@ -3,38 +3,40 @@
{% block content %}
<div id="dev-mirrorlist" class="box">
-
- <h2>Mirror List</h2>
-
+ <h2>Mirror Overview</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>
+ {% if user.is_authenticated %}
+ <th>Public</th>
+ <th>Active</th>
<th>Rsync IPs</th>
+ <th>Admin Email</th>
<th>Notes</th>
+ {% endif %}
</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>
+ <tr class="{% cycle 'odd' 'even' %}">
+ <td>{{mirror.name}}</td>
+ <td>{{mirror.get_tier_display}}</td>
+ <td>{{mirror.country}}</td>
+ <td>{{mirror.isos|yesno}}</td>
+ <td class="wrap">{{mirror.supported_protocols}}</td>
+ {% if user.is_authenticated %}
+ <td>{{mirror.public|yesno}}</td>
+ <td>{{mirror.active|yesno}}</td>
+ <td class="wrap">{{mirror.rsync_ips.all|join:', '}}</td>
+ <td>{{mirror.admin_email}}</td>
+ <td class="wrap">{{mirror.notes|linebreaks}}</td>
+ {% endif %}
+ </tr>
{% endfor %}
</tbody>
</table>