summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-10 22:41:09 +0100
committerDan McGee <dan@archlinux.org>2012-11-10 22:41:09 +0100
commit07d2fc5d358992a52908cccbbca4a11d01e98da3 (patch)
tree735357c0f23f80dcce3866f50afcf38c1a9202d8 /templates/mirrors
parent86102c6e645451c03e3e576060eba7f93350bf6b (diff)
downloadarchweb-07d2fc5d358992a52908cccbbca4a11d01e98da3.tar.gz
archweb-07d2fc5d358992a52908cccbbca4a11d01e98da3.tar.xz
Add initial version of mirror status chart
Still have some hardcoded stuff to rip out and replace to make this a bit more dynamic on things like sizing, but for now, this is a great start. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/mirror_details.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 1817584..32ef8a7 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -104,14 +104,21 @@
{% endfor %}
</tbody>
</table>
+
+ <h3>Mirror Status Chart</h3>
+
+ <div id="visualize-mirror" class="visualize-chart"></div>
</div>
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
+<script type="text/javascript" src="{% static "d3.v2.min.js" %}"></script>
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
+<script type="text/javascript" src="{% static "mirror_status.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#available_urls:has(tbody tr)").tablesorter(
{widgets: ['zebra'], sortList: [[0,0]],
headers: { 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } } });
+ mirror_status("#visualize-mirror", "./json/");
});
</script>
{% endblock %}