diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 12:37:19 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 12:37:19 -0500 |
commit | 3e2e4d4ef8910351910d633d17f8b4e9c0ea4c74 (patch) | |
tree | c86627fe731dfff5177386d126d3bb7da2ce0444 /templates/mirrors/status.html | |
parent | 024fd1b2843d2abd0094faedfbc49e1d1a21edd0 (diff) |
Convert STATIC_URL usage to {% static %} template tag
This is a lot more flexible and will allow more than just simple
prefixing of the static file resources.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors/status.html')
-rw-r--r-- | templates/mirrors/status.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 54c59413..4f09be8b 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load static from staticfiles %} {% load mirror_status %} {% block title %}Arch Linux - Mirror Status{% endblock %} @@ -102,8 +103,8 @@ </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script> -<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script> +<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script> +<script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(function() { var headers = { 5: { sorter: 'duration' }, 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } }; |