summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/bundle.html
diff options
context:
space:
mode:
authorStephen Finucane <stephenfinucane@hotmail.com>2015-04-07 22:20:53 +0100
committerJeremy Kerr <jk@ozlabs.org>2015-05-03 13:46:52 +0800
commitd4a2c1f8792f52fec0c881ab38c91635840a50c0 (patch)
treef08cb31b6c2ad4a80bacbf9ba8a2b8b2b2cdca6d /templates/patchwork/bundle.html
parentc641660e041fdf932bad89681c167328ee85249a (diff)
downloadpatchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.bz2
patchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.xz
Integrate 'django.contrib.staticfiles'
Rather than providing a custom solution for serving static files, use the solution provided in the upstream Django source. This allows us to remove the top-level 'urls.py' file. Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork/bundle.html')
-rw-r--r--templates/patchwork/bundle.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/templates/patchwork/bundle.html b/templates/patchwork/bundle.html
index d47cf13..4a96b6b 100644
--- a/templates/patchwork/bundle.html
+++ b/templates/patchwork/bundle.html
@@ -1,17 +1,12 @@
{% extends "base.html" %}
{% load person %}
+{% load static %}
{% block headers %}
- <script language="JavaScript" type="text/javascript"
- src="/js/jquery-1.10.1.min.js">
- </script>
- <script language="JavaScript" type="text/javascript"
- src="/js/jquery.tablednd.js">
- </script>
- <script language="JavaScript" type="text/javascript"
- src="/js/bundle.js">
- </script>
+ <script type="text/javascript" src="{% static "js/jquery-1.10.1.min.js" %}"></script>
+ <script type="text/javascript" src="{% static "js/jquery.tablednd.js" %}"></script>
+ <script type="text/javascript" src="{% static "js/bundle.js" %}"></script>
{% endblock %}
{% block title %}{{project.name}}{% endblock %}
{% block heading %}bundle: {{bundle.owner.username}} /