summaryrefslogtreecommitdiff
path: root/templates/releng
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/releng
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/releng')
-rw-r--r--templates/releng/iso_overview.html5
-rw-r--r--templates/releng/result_list.html5
2 files changed, 6 insertions, 4 deletions
diff --git a/templates/releng/iso_overview.html b/templates/releng/iso_overview.html
index 76479c52..ca5a8c08 100644
--- a/templates/releng/iso_overview.html
+++ b/templates/releng/iso_overview.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load static from staticfiles %}
{% load url from future %}
{% block content %}
@@ -31,8 +32,8 @@
</table>
</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() {
$(".results:not(:has(tbody tr.empty))").tablesorter({widgets: ['zebra']});
diff --git a/templates/releng/result_list.html b/templates/releng/result_list.html
index 62264217..207a8ba3 100644
--- a/templates/releng/result_list.html
+++ b/templates/releng/result_list.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load static from staticfiles %}
{% load url from future %}
{% block content %}
@@ -34,8 +35,8 @@
</table>
</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() {
$(".results:not(:has(tbody tr.empty))").tablesorter({widgets: ['zebra']});