diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 18:37:19 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 18:37:19 +0100 |
commit | 3e2e4d4ef8910351910d633d17f8b4e9c0ea4c74 (patch) | |
tree | c86627fe731dfff5177386d126d3bb7da2ce0444 /templates/news | |
parent | 024fd1b2843d2abd0094faedfbc49e1d1a21edd0 (diff) | |
download | archweb-3e2e4d4ef8910351910d633d17f8b4e9c0ea4c74.tar.gz archweb-3e2e4d4ef8910351910d633d17f8b4e9c0ea4c74.tar.xz |
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/news')
-rw-r--r-- | templates/news/add.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/news/add.html b/templates/news/add.html index dca8fe8..5109465 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load static from staticfiles %} {% block title %}Arch Linux - News: {% if form.instance.id %}Edit{% else %}Add{% endif %} Article{% endblock %} {% block content %} @@ -33,7 +34,7 @@ <div id="news-preview-data" class="article-content"></div> </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script> +<script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(enablePreview); </script> |