summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-04-14 22:08:25 +0200
committerDan McGee <dan@archlinux.org>2013-04-14 22:08:25 +0200
commit9b07cb1ebdc8c5cc5dff66a7edb02e0ddc9f4733 (patch)
tree438a53173e4fd3e33ec8bb3ff60fda836bd1b7c2 /templates
parente4e88638b68ca34cc15ea5551f0e8a1a4c2e03d5 (diff)
downloadarchweb-9b07cb1ebdc8c5cc5dff66a7edb02e0ddc9f4733.tar.gz
archweb-9b07cb1ebdc8c5cc5dff66a7edb02e0ddc9f4733.tar.xz
Draw one mirror status graph per check location
Rather than lump it all together and have odd spikes depending on which side of the Atlantic checked a mirror in a given timeslot, draw a chart per check location. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/mirrors/mirror_details.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index ee60157..1c9a970 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -106,10 +106,16 @@
{% endfor %}
</tbody>
</table>
+</div>
+
+<div class="box">
+ <h2>Mirror Status Charts</h2>
- <h3>Mirror Status Chart</h3>
+ <p>Periodic checks of the mirrors are done from various geographic
+ locations, IP addresses, and using IPv4 or IPv6. These results are
+ summarized in graphical form below.</p>
- <div id="visualize-mirror" class="visualize-mirror visualize-chart"></div>
+ <div id="charts-container"></div>
</div>
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "d3-3.0.6.min.js" %}"></script>
@@ -122,7 +128,7 @@ $(document).ready(function() {
headers: { 8: { sorter: 'mostlydigit' }, 9: { sorter: 'mostlydigit' }, 10: { sorter: 'mostlydigit' } } });
});
$(document).ready(function() {
- mirror_status("#visualize-mirror", "./json/");
+ draw_graphs("/mirrors/locations/json/", "./json/", "#charts-container");
});
</script>
{% endblock %}