summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-09-01 23:16:44 +0200
committerDan McGee <dan@archlinux.org>2014-09-01 23:16:44 +0200
commita8ceba34299cca271ddf433bf7618aa98e56cc36 (patch)
tree18b60a477ad4d6126823902ce132d86e2954bd32 /templates
parent9335d3330b2cee8065cbd46eb71a7ebc50b4b037 (diff)
downloadarchweb-a8ceba34299cca271ddf433bf7618aa98e56cc36.tar.gz
archweb-a8ceba34299cca271ddf433bf7618aa98e56cc36.tar.xz
Add details link to mirror status pageHEADmaster
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/mirrors/status.html4
-rw-r--r--templates/mirrors/status_table.html2
-rw-r--r--templates/mirrors/url_details.html4
3 files changed, 9 insertions, 1 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index e97ad4b..24408be 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -80,7 +80,9 @@
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
- var headers = { 4: { sorter: 'duration' }, 5: { sorter: 'mostlydigit' }, 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' } };
+ var headers = { 4: { sorter: 'duration' }, 5: { sorter: 'mostlydigit' },
+ 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' },
+ 8: { sorter: false } };
$("#outofsync_mirrors:has(tbody tr)").tablesorter(
{widgets: ['zebra'], sortList: [[4,0]], headers: headers });
$("#successful_mirrors:has(tbody tr)").tablesorter(
diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html
index 278256a..8353830 100644
--- a/templates/mirrors/status_table.html
+++ b/templates/mirrors/status_table.html
@@ -11,6 +11,7 @@
<th>μ Duration (s)</th>
<th>σ Duration (s)</th>
<th>Mirror Score</th>
+ <th></th>
</tr>
</thead>
<tbody>
@@ -23,6 +24,7 @@
<td>{{ m_url.duration_avg|floatvalue:2 }}</td>
<td>{{ m_url.duration_stddev|floatvalue:2 }}</td>
<td>{{ m_url.score|floatvalue:1|default:'∞' }}</td>
+ <td><a href="{{ m_url.get_absolute_url }}">details</a></td>
</tr>{% endfor %}
</tbody>
</table>
diff --git a/templates/mirrors/url_details.html b/templates/mirrors/url_details.html
index 201e189..557a1b7 100644
--- a/templates/mirrors/url_details.html
+++ b/templates/mirrors/url_details.html
@@ -18,6 +18,10 @@
<td>{% if url.protocol.is_download %}<a href="{{ url.url }}">{{ url.url }}</a>{% else %}{{ url.url }}{% endif %}</td>
</tr>
<tr>
+ <th>Mirror:</th>
+ <td><a href="../">{{ url.mirror.name }}</a></td>
+ </tr>
+ <tr>
<th>Protocol:</th>
<td>{{ url.protocol }}</td>
</tr>