icons for context menu
authorMarcin Koziej <marcin@lolownia.org>
Thu, 10 May 2012 13:26:52 +0000 (15:26 +0200)
committerMarcin Koziej <marcin@lolownia.org>
Thu, 10 May 2012 13:26:52 +0000 (15:26 +0200)
redakcja/settings/compress.py
redakcja/static/css/book_list.css [new file with mode: 0644]
redakcja/static/icons/clock.png [new file with mode: 0644]
redakcja/static/icons/ok.png [new file with mode: 0644]
redakcja/static/icons/stop.png [new file with mode: 0644]
redakcja/static/icons/user.png [new file with mode: 0644]
redakcja/static/js/catalogue/book_list.js

index d0f0df9..43150e4 100644 (file)
@@ -28,6 +28,7 @@ COMPRESS_CSS = {
     'book_list': {
         'source_filenames': (
             'contextmenu/jquery.contextMenu.css',
+            'css/book_list.css',
         ),
         'output_filename': 'compressed/book_list_?.css',
     },
diff --git a/redakcja/static/css/book_list.css b/redakcja/static/css/book_list.css
new file mode 100644 (file)
index 0000000..86a0de5
--- /dev/null
@@ -0,0 +1,6 @@
+/* icons used in the contex menu of book list */
+
+.context-menu-item.icon-user { background-image: url(../icons/user.png); }
+.context-menu-item.icon-clock { background-image: url(../icons/clock.png); }
+.context-menu-item.icon-ok { background-image: url(../icons/ok.png); }
+.context-menu-item.icon-stop { background-image: url(../icons/stop.png); }
diff --git a/redakcja/static/icons/clock.png b/redakcja/static/icons/clock.png
new file mode 100644 (file)
index 0000000..57e496f
Binary files /dev/null and b/redakcja/static/icons/clock.png differ
diff --git a/redakcja/static/icons/ok.png b/redakcja/static/icons/ok.png
new file mode 100644 (file)
index 0000000..ea094f4
Binary files /dev/null and b/redakcja/static/icons/ok.png differ
diff --git a/redakcja/static/icons/stop.png b/redakcja/static/icons/stop.png
new file mode 100644 (file)
index 0000000..adf1b73
Binary files /dev/null and b/redakcja/static/icons/stop.png differ
diff --git a/redakcja/static/icons/user.png b/redakcja/static/icons/user.png
new file mode 100644 (file)
index 0000000..45390a6
Binary files /dev/null and b/redakcja/static/icons/user.png differ
index d7256d3..4d67ca1 100644 (file)
                "stage": { 
                    name: "Set stage",
                    items: get_items("stage"),
+                   icon: "clock",
                },
                "user": { 
                    name: "Set user",
                     items: get_items("user"),
+                   icon: "user",
                 },
                 "publish": {
                     name: "Mark publishable",
+                   icon: "ok",
                 },
                "unpublish": {
                    name: "Mark not publishable",
+                   icon: "stop",
                },
            },
            callback: set_field,