From 8383a071608329c7683f7a710030ce945bd20b4d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 8 Jul 2012 23:30:48 -0500 Subject: Add a new jquery_tablesorter CDN template tag And use it everywhere we were including the file before. This should make updating the version a heck of a lot easier. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index edeab5dc..18175845 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -105,8 +105,7 @@ -{% load cdn %}{% jquery %} - +{% load cdn %}{% jquery %}{% jquery_tablesorter %} + {% endblock %} -- cgit v1.2.3-2-g168b From 59f5b6ed5524300cc0373ad934b251e220c66da9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 13 Nov 2012 09:51:11 -0600 Subject: Mirror details style and JS cleanup Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 32ef8a7a..884187b9 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -5,12 +5,11 @@ {% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %} {% block content %} - -
+

Mirror Details: {{ mirror.name }}

- +
@@ -118,6 +117,8 @@ $(document).ready(function() { $("#available_urls:has(tbody tr)").tablesorter( {widgets: ['zebra'], sortList: [[0,0]], headers: { 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } } }); +}); +$(document).ready(function() { mirror_status("#visualize-mirror", "./json/"); }); -- cgit v1.2.3-2-g168b From 2b9519996a47fd1d978ccac36246f0245ad668fb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 27 Dec 2012 16:43:01 -0600 Subject: Update D3 to 3.0.0 Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 884187b9..132557cd 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -109,7 +109,7 @@
{% load cdn %}{% jquery %}{% jquery_tablesorter %} - + + -- cgit v1.2.3-2-g168b From 9b07cb1ebdc8c5cc5dff66a7edb02e0ddc9f4733 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 14 Apr 2013 15:08:25 -0500 Subject: 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 --- templates/mirrors/mirror_details.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index ee60157b..1c9a970e 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -106,10 +106,16 @@ {% endfor %}
Name: {{ mirror.name }}
+
+ +
+

Mirror Status Charts

-

Mirror Status Chart

+

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.

-
+
{% load cdn %}{% jquery %}{% jquery_tablesorter %} @@ -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"); }); {% endblock %} -- cgit v1.2.3-2-g168b From 3e085183bf39c59fdcd0b9e67b5a02653a51d30e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 20 Apr 2013 11:28:12 -0500 Subject: Move all script blocks into {% script_block %} section I added this a while back, but didn't roll it out to all templates. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 1c9a970e..d3e85b00 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -117,6 +117,9 @@
+{% endblock %} + +{% block script_block %} {% load cdn %}{% jquery %}{% jquery_tablesorter %} -- cgit v1.2.3-2-g168b