diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-05 23:06:10 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-05 23:06:10 -0600 |
commit | 943ef2e8e436a32ce5dc956c4d855866cd644cc1 (patch) | |
tree | 870f68873a61bcceff00e27b692abaef7542c991 /templates/devel | |
parent | 1c23308299f33e5b429899463eb207f07ad51403 (diff) |
Convert to and enable staticfiles contrib application
This moves our site static files into the sitestatic directory if they
are shared resources, and also moves a handful of things (such as the
artwork logos) into application-specific static/ directories. This
allows the staticfiles contrib app to work after a few settings tweaks,
a run of collectstatic, and massaging the hardcoded '/media/' prefix out
of our templates.
Django 1.4 is going to make this a lot easier to move things to a CDN
and provides better template tags; for now this is setting the stage
before we can move to that.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel')
-rw-r--r-- | templates/devel/clock.html | 4 | ||||
-rw-r--r-- | templates/devel/index.html | 4 | ||||
-rw-r--r-- | templates/devel/packages.html | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/devel/clock.html b/templates/devel/clock.html index d2eb0a8d..72a57d0f 100644 --- a/templates/devel/clock.html +++ b/templates/devel/clock.html @@ -40,8 +40,8 @@ </table> </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> -<script type="text/javascript" src="/media/archweb.js"></script> +<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"> $(document).ready(function() { $("#clocks-table:has(tbody tr)").tablesorter( diff --git a/templates/devel/index.html b/templates/devel/index.html index 0f0ded38..530986ae 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -288,8 +288,8 @@ {% endcache %} {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> -<script type="text/javascript" src="/media/archweb.js"></script> +<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"> $(document).ready(function() { $("#dash-myflagged:not(:has(tbody tr.empty))").tablesorter( diff --git a/templates/devel/packages.html b/templates/devel/packages.html index 9f01167c..ed4123b6 100644 --- a/templates/devel/packages.html +++ b/templates/devel/packages.html @@ -52,8 +52,8 @@ </table> </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> -<script type="text/javascript" src="/media/archweb.js"></script> +<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"> $(document).ready(function() { $(".results").tablesorter({widgets: ['zebra']}); |