Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added shortcuts

  • Loading branch information...
commit b00c8e0b4ee4a3d86d9fdba71cb2235bc21d382c 1 parent 4e577ad
Christian Bertschy authored
View
151 cms/static/cms/css/django-cms-admin.css
@@ -1198,8 +1198,56 @@ a.active.selector-chooseall:before,
padding-left: 5px !important;
}
-/* Sepcials */
+/* Shortcuts */
/* line 68, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a {
+ background: none !important;
+ padding-left: 10px;
+}
+/* line 71, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a:hover {
+ text-decoration: none !important;
+}
+
+/* line 77, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a:before {
+ font-family: 'django-admin-icons';
+ font-style: normal;
+ speak: none;
+ font-weight: normal;
+ font-size: 200%;
+ -webkit-font-smoothing: antialiased;
+ padding-right: 5px;
+ vertical-align: middle;
+}
+
+/* line 88, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a.pages:before {
+ content: "\27";
+}
+
+/* line 89, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a.home:before {
+ content: "\28";
+}
+
+/* line 90, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a.user:before {
+ content: "\29";
+}
+
+/* line 91, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a.files:before {
+ content: "\2a";
+}
+
+/* line 92, ../sass/partials/_icons.scss */
+.admin_shortcuts .shortcuts li a.contact:before {
+ content: "\2b";
+}
+
+/* Sepcials */
+/* line 95, ../sass/partials/_icons.scss */
.selector ul.selector-chooser {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
@@ -2005,23 +2053,54 @@ div.breadcrumbs a:hover {
}
/* line 132, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts {
+ box-shadow: none;
+ background: #595f65;
+ border-top: 1px solid #444444;
+ color: #cccccc;
+}
+/* line 137, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts h2 {
+ border-bottom: 1px solid #444444;
+}
+/* line 141, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts li a {
+ background: #464b50 10px 50% no-repeat;
+ border: 1px solid #444444;
+ padding: 20px 10px 20px 15px;
+}
+/* line 145, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts li a:hover {
+ background-color: #595f65;
+}
+/* line 148, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts li a .count {
+ color: #888888;
+}
+/* line 151, ../sass/partials/_page.scss */
+div.admin_shortcuts .shortcuts li a .count_new {
+ background: #029eee;
+ border-color: #5bbdee;
+}
+
+/* line 159, ../sass/partials/_page.scss */
#user-tools {
padding: 20px 25px;
}
/* Box Mixin */
/* Dashboard */
-/* line 154, ../sass/partials/_page.scss */
+/* line 181, ../sass/partials/_page.scss */
.dashboard #content {
width: 740px;
}
-/* line 157, ../sass/partials/_page.scss */
+/* line 184, ../sass/partials/_page.scss */
.dashboard .module {
padding: 0 30px 10px 30px !important;
}
/* Module */
-/* line 164, ../sass/partials/_page.scss */
+/* line 191, ../sass/partials/_page.scss */
#content-main .module {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -2040,12 +2119,12 @@ div.breadcrumbs a:hover {
padding: 0;
margin-bottom: 10px;
}
-/* line 146, ../sass/partials/_page.scss */
+/* line 173, ../sass/partials/_page.scss */
#content-main .module h2, #content-main .module h3, #content-main .module h4, #content-main .module h5, #content-main .module h6 {
margin-bottom: 12px;
margin-top: 0;
}
-/* line 167, ../sass/partials/_page.scss */
+/* line 194, ../sass/partials/_page.scss */
#content-main .module h2 {
background: none;
border-bottom: 1px solid #dddddd;
@@ -2055,7 +2134,7 @@ div.breadcrumbs a:hover {
margin-top: 0;
padding: 10px;
}
-/* line 176, ../sass/partials/_page.scss */
+/* line 203, ../sass/partials/_page.scss */
#content-main .module caption {
background: none;
color: #666666;
@@ -2065,11 +2144,11 @@ div.breadcrumbs a:hover {
margin-bottom: 10px;
padding: 0;
}
-/* line 184, ../sass/partials/_page.scss */
+/* line 211, ../sass/partials/_page.scss */
#content-main .module caption a.section:link, #content-main .module caption a.section:visited {
color: #666666;
}
-/* line 190, ../sass/partials/_page.scss */
+/* line 217, ../sass/partials/_page.scss */
#content-main .inline-group {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -2085,7 +2164,7 @@ div.breadcrumbs a:hover {
background: rgba(255, 255, 255, 0.2) !important;
padding: 10px;
}
-/* line 196, ../sass/partials/_page.scss */
+/* line 223, ../sass/partials/_page.scss */
#content-main .inline-group h2 {
background: none !important;
color: #444444;
@@ -2093,21 +2172,21 @@ div.breadcrumbs a:hover {
margin-bottom: 10px;
padding: 0 10px 8px 0px;
}
-/* line 203, ../sass/partials/_page.scss */
+/* line 230, ../sass/partials/_page.scss */
#content-main .inline-group div.add-row {
background: none !important;
border-bottom: 0 !important;
}
-/* line 207, ../sass/partials/_page.scss */
+/* line 234, ../sass/partials/_page.scss */
#content-main .inline-group .form-row {
border-bottom: none !important;
}
-/* line 213, ../sass/partials/_page.scss */
+/* line 240, ../sass/partials/_page.scss */
#content-main .inline-related h3 {
background: none;
border-bottom: none;
}
-/* line 219, ../sass/partials/_page.scss */
+/* line 246, ../sass/partials/_page.scss */
#content-main .submit-row {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -2123,7 +2202,7 @@ div.breadcrumbs a:hover {
background: rgba(255, 255, 255, 0.2) !important;
padding: 10px;
}
-/* line 227, ../sass/partials/_page.scss */
+/* line 254, ../sass/partials/_page.scss */
#content-main .selector .selector-available, #content-main .selector .selector-chosen {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -2133,22 +2212,22 @@ div.breadcrumbs a:hover {
border-radius: 5px;
border: 1px solid #dddddd;
}
-/* line 230, ../sass/partials/_page.scss */
+/* line 257, ../sass/partials/_page.scss */
#content-main .selector .selector-available h2, #content-main .selector .selector-chosen h2 {
color: #444444 !important;
background: none !important;
border: none;
margin-bottom: 0;
}
-/* line 236, ../sass/partials/_page.scss */
+/* line 263, ../sass/partials/_page.scss */
#content-main .selector .selector-available input, #content-main .selector .selector-chosen input {
width: 252px;
}
-/* line 240, ../sass/partials/_page.scss */
+/* line 267, ../sass/partials/_page.scss */
#content-main .selector .selector-filter {
border: none;
}
-/* line 243, ../sass/partials/_page.scss */
+/* line 270, ../sass/partials/_page.scss */
#content-main .selector select[multiple] {
border: 1px solid #dddddd;
border-left: none;
@@ -2156,7 +2235,7 @@ div.breadcrumbs a:hover {
margin-bottom: 0;
}
-/* line 253, ../sass/partials/_page.scss */
+/* line 280, ../sass/partials/_page.scss */
#content-related .module {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -2173,83 +2252,83 @@ div.breadcrumbs a:hover {
margin-left: 10px;
padding: 10px 20px !important;
}
-/* line 260, ../sass/partials/_page.scss */
+/* line 287, ../sass/partials/_page.scss */
#content-related .module ul.actionlist {
padding: 0;
}
-/* line 263, ../sass/partials/_page.scss */
+/* line 290, ../sass/partials/_page.scss */
#content-related .module h2 {
background: none;
color: #888888;
padding: 0 0 5px 0;
}
-/* line 268, ../sass/partials/_page.scss */
+/* line 295, ../sass/partials/_page.scss */
#content-related .module h3 {
border-bottom: 1px solid #dddddd;
line-height: 20px;
margin: 0 0 5px 0;
padding: 0;
}
-/* line 274, ../sass/partials/_page.scss */
+/* line 301, ../sass/partials/_page.scss */
#content-related .module p {
padding: 0;
}
-/* line 281, ../sass/partials/_page.scss */
+/* line 308, ../sass/partials/_page.scss */
#changelist #toolbar {
background: none !important;
border: 0 !important;
}
-/* line 285, ../sass/partials/_page.scss */
+/* line 312, ../sass/partials/_page.scss */
#changelist #toolbar form #searchbar {
padding: 4px 5px 6px 5px !important;
}
-/* line 291, ../sass/partials/_page.scss */
+/* line 318, ../sass/partials/_page.scss */
#changelist #changelist-search div {
float: right;
margin-right: 2px;
}
-/* line 295, ../sass/partials/_page.scss */
+/* line 322, ../sass/partials/_page.scss */
#changelist #changelist-search label {
min-width: auto;
font-size: 150%;
}
-/* line 300, ../sass/partials/_page.scss */
+/* line 327, ../sass/partials/_page.scss */
#changelist #changelist-filter {
background: rgba(255, 255, 255, 0.2);
}
-/* line 302, ../sass/partials/_page.scss */
+/* line 329, ../sass/partials/_page.scss */
#changelist #changelist-filter h2 {
background: none;
color: #888888;
padding: 2px 9px;
}
-/* line 307, ../sass/partials/_page.scss */
+/* line 334, ../sass/partials/_page.scss */
#changelist #changelist-filter ul {
font-size: 12px;
margin-bottom: 10px;
}
-/* line 310, ../sass/partials/_page.scss */
+/* line 337, ../sass/partials/_page.scss */
#changelist #changelist-filter ul li.selected {
border-left: none !important;
padding-left: 0 !important;
margin-left: 0 !important;
}
-/* line 314, ../sass/partials/_page.scss */
+/* line 341, ../sass/partials/_page.scss */
#changelist #changelist-filter ul li.selected a {
color: #029eee !important;
}
-/* line 320, ../sass/partials/_page.scss */
+/* line 347, ../sass/partials/_page.scss */
#changelist #result_list {
margin: 0 !important;
}
-/* line 323, ../sass/partials/_page.scss */
+/* line 350, ../sass/partials/_page.scss */
#changelist .actions {
background: none !important;
border: 0 !important;
padding: 0px 3px 6px 3px !important;
}
-/* line 328, ../sass/partials/_page.scss */
+/* line 355, ../sass/partials/_page.scss */
#changelist .paginator {
border-top: none !important;
border-bottom: none !important;
View
BIN  cms/static/cms/fonts/django-admin-icons.eot
Binary file not shown
View
10 cms/static/cms/fonts/django-admin-icons.svg
@@ -3,7 +3,7 @@
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
This is a custom SVG font generated by IcoMoon.
-2
+3
</metadata>
<defs>
<font id="django-admin-icons" horiz-adv-x="512" >
@@ -33,5 +33,13 @@ This is a custom SVG font generated by IcoMoon.
M 128.00,224.00l 128.00,128.00l0.00-96.00 l 128.00,0.00 l0.00-64.00 l-128.00,0.00 l0.00-96.00 L 128.00,224.00z" />
<glyph unicode="&#x26;" d="M0.00,224.00c0.00-141.376, 114.624-256.00, 256.00-256.00c 141.392,0.00, 256.00,114.624, 256.00,256.00c0.00,141.392-114.608,256.00-256.00,256.00C 114.624,480.00,0.00,365.392,0.00,224.00z M 384.00,224.00
l-128.00-128.00l0.00,96.00 L 128.00,192.00 l0.00,64.00 l 128.00,0.00 L 256.00,352.00 L 384.00,224.00z" />
+<glyph unicode="&#x27;" d="M 224.00,288.00L 416.00,288.00L 416.00,256.00L 224.00,256.00zM 224.00,224.00L 416.00,224.00L 416.00,192.00L 224.00,192.00zM 224.00,160.00L 416.00,160.00L 416.00,128.00L 224.00,128.00zM 224.00,96.00L 352.00,96.00L 352.00,64.00L 224.00,64.00zM 480.00,384.00l-96.00,0.00 L 384.00,448.00 c0.00,17.60-14.40,32.00-32.00,32.00L 32.00,480.00 C 14.40,480.00,0.00,465.60,0.00,448.00l0.00-352.00 c0.00-17.60, 14.40-32.00, 32.00-32.00l 96.00,0.00 l0.00-64.00 c0.00-17.60, 14.40-32.00, 32.00-32.00l 320.00,0.00
+ c 17.60,0.00, 32.00,14.40, 32.00,32.00L 512.00,352.00 C 512.00,369.60, 497.60,384.00, 480.00,384.00z M 128.00,352.00l0.00-240.00 L 48.00,112.00 L 48.00,432.00 l 288.00,0.00 l0.00-48.00 L 160.00,384.00 C 142.40,384.00, 128.00,369.60, 128.00,352.00z M 464.00,16.00L 176.00,16.00
+ L 176.00,336.00 l 288.00,0.00 L 464.00,16.00 z" />
+<glyph unicode="&#x28;" d="M 512.00,192.00L 416.00,288.00L 416.00,384.00L 352.00,384.00L 352.00,352.00L 256.00,448.00L0.00,192.00L 64.00,192.00L 64.00,0.00L 224.00,0.00L 224.00,128.00L 288.00,128.00L 288.00,0.00L 448.00,0.00L 448.00,192.00 z" />
+<glyph unicode="&#x29;" d="M 128.00,320.00A128.00,128.00 6300.00 1,0 384.00,320A128.00,128.00 6300.00 1,0 128.00,320zM 384.00,160.00L 128.00,160.00 C 57.308,160.00,0.00,102.691,0.00,32.00l0.00-32.00 l 4.033,0.00 l 503.934,0.00 L 512.00,0.00 l0.00,32.00 C 512.00,102.691, 454.692,160.00, 384.00,160.00z" />
+<glyph unicode="&#x2a;" d="M 432.00-32.00L 80.00-32.00 c-8.848,0.00-16.00,7.152-16.00,16.00L 64.00,320.00 l 16.00,0.00 l0.00,0.00l 128.00,0.00 c 8.848,0.00, 16.00,7.168, 16.00,16.00L 224.00,416.00 L 224.00,464.00 L 224.00,480.00 l 208.00,0.00
+ c 8.848,0.00, 16.00-7.168, 16.00-16.00l0.00-480.00 C 448.00-24.848, 440.848-32.00, 432.00-32.00z M 192.00,480.00l0.00-64.00 l0.00-64.00 L 64.00,352.00 L 192.00,480.00z" />
+<glyph unicode="&#x2b;" d="M 325.608,214.818L 512.00,86.264L 512.00,382.211 zM0.00,382.211L0.00,86.264L 186.388,214.836 zM 256.00,152.309L 211.499,192.264L0.00,64.00L 512.00,64.00L 300.495,192.264 zM 496.64,384.00L 15.36,384.00L 256.00,203.074 z" />
<glyph unicode="&#xf000;" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
</font></defs></svg>
View
BIN  cms/static/cms/fonts/django-admin-icons.ttf
Binary file not shown
View
BIN  cms/static/cms/fonts/django-admin-icons.woff
Binary file not shown
View
27 cms/static/cms/sass/partials/_icons.scss
@@ -64,5 +64,32 @@ a.active.selector-chooseall { }
.selector-remove:before, .selector-add:before { color: $font-color; }
.inline-group div.add-row a { color: $success-color !important; padding-left: 5px !important; }
+/* Shortcuts */
+.admin_shortcuts .shortcuts li a {
+ background: none !important;
+ padding-left: 10px;
+ &:hover {
+ text-decoration: none !important;
+ }
+}
+
+.admin_shortcuts .shortcuts li a:before
+{
+ font-family: 'django-admin-icons';
+ font-style: normal;
+ speak: none;
+ font-weight: normal;
+ font-size: 200%;
+ -webkit-font-smoothing: antialiased;
+ padding-right: 5px;
+ vertical-align: middle;
+}
+
+.admin_shortcuts .shortcuts li a.pages:before { content: "\27"; }
+.admin_shortcuts .shortcuts li a.home:before { content: "\28"; }
+.admin_shortcuts .shortcuts li a.user:before { content: "\29"; }
+.admin_shortcuts .shortcuts li a.files:before { content: "\2a"; }
+.admin_shortcuts .shortcuts li a.contact:before { content: "\2b"; }
+
/* Sepcials */
.selector ul.selector-chooser { @include border-radius(10px); background: $background-color-light !important; height: 44px !important; }
View
27 cms/static/cms/sass/partials/_page.scss
@@ -129,6 +129,33 @@ div.breadcrumbs {
}
}
+div.admin_shortcuts .shortcuts {
+ box-shadow: none;
+ background: $background-color-dark;
+ border-top: 1px solid $line-color-dark;
+ color: $font-color-ultralight;
+ h2 {
+ border-bottom: 1px solid $line-color-dark;
+ }
+ li {
+ a {
+ background: $background-color-medium 10px 50% no-repeat;
+ border: 1px solid $line-color-dark;
+ padding: 20px 10px 20px 15px;
+ &:hover {
+ background-color: $background-color-dark;
+ }
+ .count {
+ color: $font-color-light;
+ }
+ .count_new {
+ background: $button-blue-medium-color;
+ border-color: $button-blue-light-color;
+ }
+ }
+ }
+}
+
#user-tools {
padding: 20px 25px;
}
View
34 cms/test_utils/cli.py
@@ -72,6 +72,7 @@ def configure(**extra):
'cms',
'menus',
'mptt',
+ 'admin_shortcuts',
'django.contrib.admin',
'cms.plugins.text',
'cms.plugins.picture',
@@ -185,7 +186,38 @@ def configure(**extra):
ROOT_URLCONF = 'cms.test_utils.cli',
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
- )
+ ),
+ ADMIN_SHORTCUTS = [
+ {
+ 'shortcuts': [
+ {
+ 'url': '/',
+ 'open_new_window': True,
+ },
+ {
+ 'url_name': 'admin:cms_page_changelist',
+ 'title': 'Pages',
+ 'class': 'pages',
+ },
+ {
+ 'url': '/',
+ 'title': 'Files',
+ 'class': 'files',
+ },
+ {
+ 'url_name': 'admin:auth_user_changelist',
+ 'title': 'Users',
+ 'count_new': '10',
+ },
+ {
+ 'url': '/',
+ 'title': 'Contact forms',
+ 'count': '10',
+ 'class': 'contact',
+ },
+ ]
+ },
+ ]
)
defaults.update(extra)
settings.configure(**defaults)
Please sign in to comment.
Something went wrong with that request. Please try again.