Minor fileuploader and static files fixes.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 11 Mar 2013 12:00:19 +0000 (13:00 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 11 Mar 2013 12:00:19 +0000 (13:00 +0100)
.gitignore
apps/fileupload/static/fileupload/img/progressbar.gif [new file with mode: 0644]
apps/fileupload/views.py
redakcja/settings/compress.py
redakcja/static/css/book.css
redakcja/static/css/jquery.autocomplete.css

index 0d55584..08acca5 100644 (file)
@@ -3,6 +3,9 @@ dev.sqlite
 requirements.pybundle
 *~
 *.orig
+/redakcja/media
+/static
+.sass-cache
 
 # Python garbage
 *.pyc
@@ -26,5 +29,3 @@ nbproject/*
 .project
 .pydevproject
 .settings
-platforma/static/compressed
-platforma/static/compressed/*
diff --git a/apps/fileupload/static/fileupload/img/progressbar.gif b/apps/fileupload/static/fileupload/img/progressbar.gif
new file mode 100644 (file)
index 0000000..fbcce6b
Binary files /dev/null and b/apps/fileupload/static/fileupload/img/progressbar.gif differ
index 9425515..8863465 100644 (file)
@@ -137,7 +137,7 @@ class UploadView(FormView):
                 'url': self.get_url(f.name),
                 'thumbnail_url': thumbnail(self.get_directory() + f.name),
                         'delete_url': "%s?file=%s" % (
-                            request.get_full_path(),
+                            self.request.get_full_path(),
                             quote(f.name.encode('utf-8'))),
                 'delete_type': "DELETE"
             })
index c56592d..6143729 100644 (file)
@@ -24,26 +24,26 @@ PIPELINE_CSS = {
             'css/jquery.autocomplete.css',
             'css/dialogs.css',
         ),
-        'output_filename': 'compressed/detail_styles_?.css',
+        'output_filename': 'compressed/detail_styles.css',
     },
     'catalogue': {
         'source_filenames': (
             'css/filelist.css',
         ),
-        'output_filename': 'compressed/catalogue_styles_?.css',
+        'output_filename': 'compressed/catalogue_styles.css',
      },
      'book': {
         'source_filenames': (
             'css/book.css',
         ),
-        'output_filename': 'compressed/book_?.css',         
+        'output_filename': 'compressed/book.css',
     },
     'book_list': {
         'source_filenames': (
             'contextmenu/jquery.contextMenu.css',
             'css/book_list.css',
         ),
-        'output_filename': 'compressed/book_list_?.css',
+        'output_filename': 'compressed/book_list.css',
     },
 }
 
@@ -82,7 +82,7 @@ PIPELINE_JS = {
                 'js/wiki/view_search.js',
                 'js/wiki/view_column_diff.js',
         ),
-        'output_filename': 'compressed/detail_scripts_?.js',
+        'output_filename': 'compressed/detail_scripts.js',
      },
     'catalogue': {
         'source_filenames': (
@@ -90,7 +90,7 @@ PIPELINE_JS = {
                 'js/slugify.js',
                 'email_mangler/email_mangler.js',
         ),
-        'output_filename': 'compressed/catalogue_scripts_?.js',
+        'output_filename': 'compressed/catalogue_scripts.js',
      },
      'book': {
         'source_filenames': (
@@ -99,7 +99,7 @@ PIPELINE_JS = {
             'js/book_text/jquery.highlightfade.js',
             'js/book_text/book.js',
         ),
-        'output_filename': 'compressed/book_?.js',
+        'output_filename': 'compressed/book.js',
          },
     'book_list': {
         'source_filenames': (
@@ -107,6 +107,6 @@ PIPELINE_JS = {
             'contextmenu/jquery.contextMenu.js',
             'js/catalogue/book_list.js',
         ),
-        'output_filename': 'compressed/book_list_?.js',
+        'output_filename': 'compressed/book_list.js',
     }
 }
index 354a839..a29d1d6 100644 (file)
@@ -66,12 +66,12 @@ img {
 
 #menu li a.menu:hover, #menu li a.menu:active {
     color: #000;
-    background: #FFF url(/media/static/img/arrow-down.png) no-repeat center right;
+    background: #FFF;
 }
 
 #menu li a.menu.selected {
     color: #000;
-    background: #FFF url(/media/static/img/arrow-up.png) no-repeat center right;
+    background: #FFF;
 }
 #menu a.menu-link {
     display: block;
index 416cde1..f349b9e 100644 (file)
        overflow: hidden;
 }
 
-.ac_loading {
-       background: white url('indicator.gif') right center no-repeat;
-}
-
 .ac_odd {
        background-color: #eee;
 }