diff --git a/src/mibew/styles/pages/default/css/default.css b/src/mibew/styles/pages/default/css/default.css index 4df66a96..785d1d82 100644 --- a/src/mibew/styles/pages/default/css/default.css +++ b/src/mibew/styles/pages/default/css/default.css @@ -92,7 +92,7 @@ a { overflow: hidden; } .content-no-menu { - padding: 10px 60px 10px 20px; + padding: 10px 20px 10px 20px; } .empty-inner { height: 40px; @@ -401,9 +401,8 @@ input.field-input { margin-right: 15px; padding-right: 0; } -#form-message { - border: 1px solid #4c96d4; - background-color: #e7f1f9; +#form-message, +#offline-dashboard-warning { padding: 8px 11px; font-size: 0.85em; font-weight: bold; @@ -411,7 +410,16 @@ input.field-input { margin: -10px 2px 10px; color: #515151; } -#form-message img.warning { +#form-message { + border: 1px solid #4c96d4; + background-color: #e7f1f9; +} +#offline-dashboard-warning { + border: 1px solid #4cd496; + background-color: #e7f9f1; +} +#form-message img.warning, +#offline-dashboard-warning img.warning { height: 24px; width: 24px; vertical-align: middle; @@ -770,14 +778,19 @@ table.awaiting .no-visitors { width: 100%; } .dashboard-item { - width: 32%; + width: 300px; + height: 200px; + margin-bottom: 0.4em; vertical-align: top; display: inline-block; + border: 1px solid #ededed; } .dashboard-item-content { padding: 5px 2em 5em; } .dashboard-item:hover { + background-color: #efefef; + cursor: pointer; } .dashboard-item a { padding-top: 6px; diff --git a/src/mibew/styles/pages/default/images/dash/mail_templates.png b/src/mibew/styles/pages/default/images/dash/mail_templates.png new file mode 100644 index 00000000..e94c40ac Binary files /dev/null and b/src/mibew/styles/pages/default/images/dash/mail_templates.png differ diff --git a/src/mibew/styles/pages/default/images/dash/plugins.png b/src/mibew/styles/pages/default/images/dash/plugins.png new file mode 100644 index 00000000..994eeae7 Binary files /dev/null and b/src/mibew/styles/pages/default/images/dash/plugins.png differ diff --git a/src/mibew/styles/pages/default/images/dash/profile.png b/src/mibew/styles/pages/default/images/dash/profile.png index 3bc3d45e..ab08f5d8 100644 Binary files a/src/mibew/styles/pages/default/images/dash/profile.png and b/src/mibew/styles/pages/default/images/dash/profile.png differ diff --git a/src/mibew/styles/pages/default/images/dash/styles.png b/src/mibew/styles/pages/default/images/dash/styles.png new file mode 100644 index 00000000..3bc3d45e Binary files /dev/null and b/src/mibew/styles/pages/default/images/dash/styles.png differ diff --git a/src/mibew/styles/pages/default/images/dash/translations.png b/src/mibew/styles/pages/default/images/dash/translations.png new file mode 100644 index 00000000..b2c7b6af Binary files /dev/null and b/src/mibew/styles/pages/default/images/dash/translations.png differ diff --git a/src/mibew/styles/pages/default/js/dashboard.js b/src/mibew/styles/pages/default/js/dashboard.js new file mode 100644 index 00000000..e523dc6a --- /dev/null +++ b/src/mibew/styles/pages/default/js/dashboard.js @@ -0,0 +1,30 @@ +/*! + * This file is a part of Mibew Messenger. + * + * Copyright 2005-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +(function($, document) { + $(function(){ + $("#dashboard").on("click", "div.dashboard-item", function(){ + var anchor = $(this).find("a").eq(0); + if (anchor != undefined) { + if ($(anchor).triggerHandler('click') === undefined) { + window.location.href = $(anchor).attr('href'); + } + } + }); + }); +})(jQuery, document); diff --git a/src/mibew/styles/pages/default/js/locale.js b/src/mibew/styles/pages/default/js/locale.js index 53b81f7d..7293be1e 100644 --- a/src/mibew/styles/pages/default/js/locale.js +++ b/src/mibew/styles/pages/default/js/locale.js @@ -61,16 +61,16 @@ } $(function(){ - $("#change-language").click(function(){ + $("#change-language").on('click', function(){ centerPopup(); loadPopup(); return false; }); - $("#dashboard-locales-popup-close").click(function(){ + $("#dashboard-locales-popup-close").on('click', function(){ disablePopup(); return false; }); - $("#background-popup").click(function(){ + $("#background-popup").on('click', function(){ disablePopup(); }); $(document).keypress(function(e){ diff --git a/src/mibew/styles/pages/default/templates_src/server_side/index.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/index.handlebars index 2ffa8f7c..68d04076 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/index.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/index.handlebars @@ -3,10 +3,9 @@ {{#if localeLinks}} {{/if}} + {{/override}} - {{#override "menu"}}{{> _menu}}{{/override}} - {{#override "content"}}
{{#if needUpdate}} @@ -14,8 +13,15 @@
{{/if}} + {{#if warnOffline}} + {{#unless isOnline}} +
{{{l10n "You are Offline. Connect..." (route "users" nomenu="1")}}}
+
+ {{/unless}} + {{/if}} +
-
+ + +
+
+ + + {{l10n "Plugins"}} + + {{l10n "Manage plugins."}} +
+
+ +
+
+ + + {{l10n "Styles"}} + + {{l10n "Manage styles."}} +
+
+ +
+
+ + + {{l10n "Translations"}} + + {{l10n "Manage translations."}} +
+
+ +
+
+ + + {{l10n "Mail templates"}} + + {{l10n "Manage mail templates."}} +
+
{{/if}} {{#if currentopid}}