From: Marcin Koziej Date: Thu, 10 May 2012 13:26:52 +0000 (+0200) Subject: icons for context menu X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/68fb56484e6c9951549632f498ffb07a6f41149e icons for context menu --- diff --git a/redakcja/settings/compress.py b/redakcja/settings/compress.py index d0f0df9f..43150e47 100644 --- a/redakcja/settings/compress.py +++ b/redakcja/settings/compress.py @@ -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 index 00000000..86a0de52 --- /dev/null +++ b/redakcja/static/css/book_list.css @@ -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 index 00000000..57e496f8 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 index 00000000..ea094f49 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 index 00000000..adf1b73e 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 index 00000000..45390a69 Binary files /dev/null and b/redakcja/static/icons/user.png differ diff --git a/redakcja/static/js/catalogue/book_list.js b/redakcja/static/js/catalogue/book_list.js index d7256d3b..4d67ca12 100644 --- a/redakcja/static/js/catalogue/book_list.js +++ b/redakcja/static/js/catalogue/book_list.js @@ -66,16 +66,20 @@ "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,