diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-10 15:41:09 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-10 15:41:09 -0600 |
commit | 07d2fc5d358992a52908cccbbca4a11d01e98da3 (patch) | |
tree | 735357c0f23f80dcce3866f50afcf38c1a9202d8 /templates/mirrors | |
parent | 86102c6e645451c03e3e576060eba7f93350bf6b (diff) |
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.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 18175845..32ef8a7a 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 %} |