summaryrefslogtreecommitdiff
path: root/templates/visualize
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 12:37:19 -0500
committerDan McGee <dan@archlinux.org>2012-03-24 12:37:19 -0500
commit3e2e4d4ef8910351910d633d17f8b4e9c0ea4c74 (patch)
treec86627fe731dfff5177386d126d3bb7da2ce0444 /templates/visualize
parent024fd1b2843d2abd0094faedfbc49e1d1a21edd0 (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/visualize')
-rw-r--r--templates/visualize/index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/visualize/index.html b/templates/visualize/index.html
index a7855eb2..95cf6c1c 100644
--- a/templates/visualize/index.html
+++ b/templates/visualize/index.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load static from staticfiles %}
{% load url from future %}
{% block title %}Arch Linux - Visualizations{% endblock %}
@@ -29,9 +30,9 @@
<div id="visualize-keys" class="visualize-chart"></div>
</div>
{% load cdn %}{% jquery %}
-<script type="text/javascript" src="{{ STATIC_URL }}d3.v2.min.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}visualize.js"></script>
+<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 "visualize.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
var orderings = {