From 802401b4e4ddc3e5aad67db300e4e10a8754c037 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 30 Oct 2011 09:06:31 +0000
Subject: [PATCH] use the css/js bundles when DEBUG is false

---
 server/djrandom/frontend/templates/index.html | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/server/djrandom/frontend/templates/index.html b/server/djrandom/frontend/templates/index.html
index 1834413..c0dca81 100644
--- a/server/djrandom/frontend/templates/index.html
+++ b/server/djrandom/frontend/templates/index.html
@@ -3,6 +3,8 @@
   <head>
     <title>{{ config['SITE_NAME'] }}</title>
     <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon">
+
+    {% if config['DEBUG'] %}
     <link rel="stylesheet" type="text/css" href="/static/css/style.css">
     <link rel="stylesheet" type="text/css"
           href="/static/css/jquery.autocomplete.css">
@@ -26,10 +28,6 @@
     <script type="text/javascript"
             src="/static/js/circle.player.js"></script>
 
-    {% if not config['DEBUG'] %}
-    <script type="text/javascript"
-            src="/static/js/djr.min.js"></script>
-    {% else %}
     <script type="text/javascript"
             src="/static/js/djr/djr.js"></script>
     <script type="text/javascript"
@@ -38,6 +36,14 @@
             src="/static/js/djr/playlist.js"></script>
     <script type="text/javascript"
             src="/static/js/djr/player.js"></script>
+
+    {% else %}
+    <link rel="stylesheet" type="text/css" href="/static/css/bundle.css">
+    <link rel="stylesheet" type="text/css"
+          href="/static/circle.skin/circle.player.css">
+
+    <script type="text/javascript"
+            src="/static/js/bundle.js"></script>
     {% endif %}
 
     <script type="text/javascript">
-- 
GitLab