You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/09/23 11:39:08 UTC

[1/2] ignite git commit: IGNITE-843 WIP on "More info...".

Repository: ignite
Updated Branches:
  refs/heads/ignite-843 d5b4b4ed5 -> 882b4791e


IGNITE-843 WIP on "More info...".


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f782cbcc
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f782cbcc
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f782cbcc

Branch: refs/heads/ignite-843
Commit: f782cbcce15e4f0d0e3bcd9343a8fcd7e2edae19
Parents: d5b4b4e
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Wed Sep 23 16:17:26 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Sep 23 16:17:26 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/models/caches.json  | 17 ++++++--------
 .../main/js/controllers/models/clusters.json    | 13 ++++-------
 .../main/js/controllers/models/metadata.json    | 15 +++++-------
 .../src/main/js/controllers/models/summary.json | 17 ++++++--------
 .../src/main/js/public/stylesheets/style.scss   | 21 +++++++----------
 .../src/main/js/views/configuration/caches.jade |  2 +-
 .../main/js/views/configuration/clusters.jade   |  2 +-
 .../main/js/views/configuration/metadata.jade   |  2 +-
 .../main/js/views/configuration/summary.jade    |  2 +-
 .../src/main/js/views/includes/controls.jade    | 24 ++++++++++++--------
 10 files changed, 51 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/controllers/models/caches.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/caches.json b/modules/control-center-web/src/main/js/controllers/models/caches.json
index 5baf9fd..bb16f74 100644
--- a/modules/control-center-web/src/main/js/controllers/models/caches.json
+++ b/modules/control-center-web/src/main/js/controllers/models/caches.json
@@ -2,19 +2,16 @@
   "screenTip": {
     "workflowTitle": "On This Screen:",
     "workflowContent": [
-      "<ul>",
-      "  <li>Configure Caches</li>",
-      "  <li>Link Metadata to Caches</li>",
-      "  <li>Link Caches to Clusters</li>",
-      "</ul>"
+      "Configure Caches",
+      "Link Metadata to Caches",
+      "Link Caches to Clusters",
+      "More info..."
     ],
     "whatsNextTitle": "Next Steps:",
     "whatsNextContent": [
-      "<ul>",
-      "  <li>Continue to <a href='/configuration/metadata'>Metadata</a></li>",
-      "  <li>Continue to <a href='/configuration/summary'>Summary</a></li>",
-      "  <li>Back to <a href='/configuration/clusters'>Clusters</a></li>",
-      "</ul>"
+      "Continue to <a href='/configuration/metadata'>Metadata</a>",
+      "Continue to <a href='/configuration/summary'>Summary</a>",
+      "Back to <a href='/configuration/clusters'>Clusters</a>"
     ]
   },
   "general": [

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/controllers/models/clusters.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/clusters.json b/modules/control-center-web/src/main/js/controllers/models/clusters.json
index e07d31f9..ca612bc 100644
--- a/modules/control-center-web/src/main/js/controllers/models/clusters.json
+++ b/modules/control-center-web/src/main/js/controllers/models/clusters.json
@@ -2,17 +2,14 @@
   "screenTip": {
     "workflowTitle": "On This Screen:",
     "workflowContent": [
-      "<ul>",
-      "  <li>Configure Clusters</li>",
-      "  <li>Link Clusters to Caches</li>",
-      "</ul>"
+      "Configure Clusters",
+      "Link Clusters to Caches",
+      "More info..."
     ],
     "whatsNextTitle": "Next Steps:",
     "whatsNextContent": [
-      "<ul>",
-      "  <li>Continue to <a href='/configuration/caches'>Caches</a></li>",
-      "  <li>Continue to <a href='/configuration/summary'>Summary</a></li>",
-      "</ul>"
+      "Continue to <a href='/configuration/caches'>Caches</a>",
+      "Continue to <a href='/configuration/summary'>Summary</a>"
     ]
   },
   "general": [

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/controllers/models/metadata.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/metadata.json b/modules/control-center-web/src/main/js/controllers/models/metadata.json
index aecf9c8..ba46792 100644
--- a/modules/control-center-web/src/main/js/controllers/models/metadata.json
+++ b/modules/control-center-web/src/main/js/controllers/models/metadata.json
@@ -2,18 +2,15 @@
   "screenTip": {
     "workflowTitle": "On This Screen:",
     "workflowContent": [
-      "<ul>",
-      "  <li>Manually enter Metadata</li>",
-      "  <li>Load Metadata from Database</li>",
-      "</ul><br/>"
+      "Manually enter Metadata",
+      "Load Metadata from Database",
+      "More info..."
     ],
     "whatsNextTitle": "Next Steps:",
     "whatsNextContent": [
-      "<ul>",
-      "  <li>Continue to <a href='/configuration/summary'>Summary</a></li>",
-      "  <li>Back to <a href='/configuration/caches'>Caches</a></li>",
-      "  <li>Back to <a href='/configuration/clusters'>Clusters</a></li>",
-      "</ul>"
+      "Continue to <a href='/configuration/summary'>Summary</a>",
+      "Back to <a href='/configuration/caches'>Caches</a>",
+      "Back to <a href='/configuration/clusters'>Clusters</a>"
     ]
   },
   "metadata": [

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/controllers/models/summary.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/summary.json b/modules/control-center-web/src/main/js/controllers/models/summary.json
index dc74bb1..5a30ff8 100644
--- a/modules/control-center-web/src/main/js/controllers/models/summary.json
+++ b/modules/control-center-web/src/main/js/controllers/models/summary.json
@@ -2,19 +2,16 @@
   "screenTip": {
     "workflowTitle": "On This Screen:",
     "workflowContent": [
-      "<ul>",
-      "  <li>Download XML Config</li>",
-      "  <li>Download Java Code</li>",
-      "  <li>Download Docker File</li>",
-      "</ul>"
+      "Download XML Config",
+      "Download Java Code",
+      "Download Docker File",
+      "More info..."
     ],
     "whatsNextTitle": "Next Steps:",
     "whatsNextContent": [
-      "<ul>",
-      "  <li>Deploy Ignite Servers</li>",
-      "  <li>Connect Ignite Clients</li>",
-      "  <li>Analyze with SQL</li>",
-      "</ul>"
+      "Deploy Ignite Servers",
+      "Connect Ignite Clients",
+      "Analyze with SQL"
     ]
   },
   "clientFields": [

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/public/stylesheets/style.scss
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/public/stylesheets/style.scss b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
index 9da3904..6410f7b 100644
--- a/modules/control-center-web/src/main/js/public/stylesheets/style.scss
+++ b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
@@ -1290,32 +1290,27 @@ a {
 }
 
 .block-callout-parent {
-    overflow: hidden;
+    table {
+        width: 100%
+    }
 }
 
 .block-callout {
     border-left: 5px solid;
-    display: inline-block;
     vertical-align: top;
-    width: 50%;
 
     i {
         padding: 10px 5px 0 10px;
     }
 
-    ul {
-        padding-left: 20px;
-        margin-bottom: 0;
-    }
-
-    p {
-        padding: 5px 0 10px 10px;
-        margin: 0;
-    }
-
     label {
         font-weight: bold;
     }
+
+    ul {
+        padding: 5px 0 10px 20px;
+        margin: 0 0 0 10px;
+    }
 }
 
 .block-callout-left {

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/views/configuration/caches.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/caches.jade b/modules/control-center-web/src/main/js/views/configuration/caches.jade
index 1f3687d..7631d5a 100644
--- a/modules/control-center-web/src/main/js/views/configuration/caches.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/caches.jade
@@ -28,7 +28,7 @@ block content
     .docs-body(ng-controller='cachesController')
         div(dw-loading='loadingCachesScreen' dw-loading-options='{text: "Loading caches screen..."}')
             div(ng-if='ui.ready')
-                +block-callout('{{screenTip.workflowTitle}}', 'joinTip(screenTip.workflowContent)', '{{screenTip.whatsNextTitle}}', 'joinTip(screenTip.whatsNextContent)')
+                +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
                 +main-table('Caches:', 'caches', 'cacheName', 'selectItem(row)', '{{$index + 1}}) {{row.name}}, {{row.cacheMode | displayValue:cacheModes:"Cache mode not set"}}, {{row.atomicityMode | displayValue:atomicities:"Cache atomicity not set"}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new caches')

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/views/configuration/clusters.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/clusters.jade b/modules/control-center-web/src/main/js/views/configuration/clusters.jade
index d10c20e..8cbb5a5 100644
--- a/modules/control-center-web/src/main/js/views/configuration/clusters.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/clusters.jade
@@ -28,7 +28,7 @@ block content
     .docs-body(ng-controller='clustersController')
         div(dw-loading='loadingClustersScreen' dw-loading-options='{text: "Loading clusters screen..."}')
             div(ng-if='ui.ready')
-                +block-callout('{{screenTip.workflowTitle}}', 'joinTip(screenTip.workflowContent)', '{{screenTip.whatsNextTitle}}', 'joinTip(screenTip.whatsNextContent)')
+                +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
                 +main-table('Clusters:', 'clusters', 'clusterName', 'selectItem(row)', '{{$index + 1}}) {{row.name}}, {{row.discovery.kind | displayValue:discoveries:"Discovery not set"}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new cluster')

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/views/configuration/metadata.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/metadata.jade b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
index aac5cf0..3403e33 100644
--- a/modules/control-center-web/src/main/js/views/configuration/metadata.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
@@ -28,7 +28,7 @@ block content
     .docs-body(ng-controller='metadataController')
         div(dw-loading='loadingMetadataScreen' dw-loading-options='{text: "Loading metadata screen..."}')
             div(ng-if='ui.ready')
-                +block-callout('{{screenTip.workflowTitle}}', 'joinTip(screenTip.workflowContent)', '{{screenTip.whatsNextTitle}}', 'joinTip(screenTip.whatsNextContent)')
+                +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
                 +main-table('Types metadata:', 'metadatas', 'metadataName', 'selectItem(row)', '{{$index + 1}}) {{row.valueType}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new metadata')

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/views/configuration/summary.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/summary.jade b/modules/control-center-web/src/main/js/views/configuration/summary.jade
index 108fcc3..7bb7198 100644
--- a/modules/control-center-web/src/main/js/views/configuration/summary.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/summary.jade
@@ -41,7 +41,7 @@ block content
         h1 Configurations Summary
         hr
     .docs-body(ng-controller='summaryController')
-        +block-callout('{{screenTip.workflowTitle}}', 'joinTip(screenTip.workflowContent)', '{{screenTip.whatsNextTitle}}', 'joinTip(screenTip.whatsNextContent)')
+        +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
         .padding-dflt(ng-if='clusters.length == 0')
             | You have no clusters configured. Please configure them &nbsp;
             a(href='clusters') here.

http://git-wip-us.apache.org/repos/asf/ignite/blob/f782cbcc/modules/control-center-web/src/main/js/views/includes/controls.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/includes/controls.jade b/modules/control-center-web/src/main/js/views/includes/controls.jade
index ad694ff..96e7bda 100644
--- a/modules/control-center-web/src/main/js/views/includes/controls.jade
+++ b/modules/control-center-web/src/main/js/views/includes/controls.jade
@@ -14,16 +14,20 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 
-mixin block-callout(titleWorkflow, contentWorkflow, whatsNextWorkflow, whatsNextContent)
-    .block-callout-parent.margin-bottom-dflt
-        .block-callout-left
-            i.fa.fa-check-square.block-callout-header-left
-            label.block-callout-header-left #{titleWorkflow}
-            p(ng-bind-html=contentWorkflow)
-        .block-callout-right
-            i.fa.fa-check-square.block-callout-header-right
-            label.block-callout-header-right #{whatsNextWorkflow}
-            p(ng-bind-html=whatsNextContent)
+mixin block-callout(workflowTitle, workflowContent, whatsNextTitle, whatsNextContent)
+    table.block-callout-parent
+        tbody
+            tr(height='100%')
+                td.block-callout-left(width='50%')
+                    i.fa.fa-check-square.block-callout-header-left
+                    label.block-callout-header-left #{workflowTitle}
+                    ul
+                        li(ng-repeat='item in #{workflowContent}' ng-bind='item')
+                td.block-callout-right(width='50%')
+                    i.fa.fa-check-square.block-callout-header-right
+                    label.block-callout-header-right #{whatsNextTitle}
+                    ul
+                        li(ng-repeat='item in #{whatsNextContent}' ng-bind-html='item')
 
 mixin tipField(lines)
     i.tipField.fa.fa-question-circle(ng-if=lines bs-tooltip='joinTip(#{lines})' type='button')


[2/2] ignite git commit: IGNITE-843 Reworked login and landing page.

Posted by ak...@apache.org.
IGNITE-843 Reworked login and landing page.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/882b4791
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/882b4791
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/882b4791

Branch: refs/heads/ignite-843
Commit: 882b4791e5bb20559de4be730f07407174557203
Parents: f782cbc
Author: vsisko <vs...@gridgain.com>
Authored: Wed Sep 23 16:39:07 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Sep 23 16:39:07 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js    | 28 +++-----
 .../src/main/js/public/stylesheets/style.scss   | 18 +++--
 .../src/main/js/views/includes/controls.jade    | 27 ++++----
 .../src/main/js/views/includes/header.jade      |  2 +-
 .../src/main/js/views/index.jade                | 70 +++++++++++++++++---
 .../src/main/js/views/login.jade                | 62 -----------------
 .../main/js/views/templates/agent-download.jade |  2 +-
 7 files changed, 96 insertions(+), 113 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index c193db5..fbc7068 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -1830,10 +1830,12 @@ controlCenterModule.controller('activeLink', [
 controlCenterModule.controller('auth', [
     '$scope', '$modal', '$http', '$window', '$common', '$focus',
     function ($scope, $modal, $http, $window, $common, $focus) {
-        $scope.action = 'login';
+        $scope.loginAction = 'login';
 
         $scope.userDropdown = [{text: 'Profile', href: '/profile'}];
 
+        $focus('login_user_email');
+
         if (!$scope.becomeUsed) {
             if ($scope.user && $scope.user.admin)
                 $scope.userDropdown.push({text: 'Admin Panel', href: '/admin'});
@@ -1844,34 +1846,20 @@ controlCenterModule.controller('auth', [
         if ($scope.token && !$scope.error)
             $focus('user_password');
 
-        // Pre-fetch modal dialogs.
-        var loginModal = $modal({scope: $scope, templateUrl: '/login', show: false});
-
-        // Show login modal.
-        $scope.login = function () {
-            loginModal.$promise.then(function () {
-                loginModal.show();
-
-                $focus('user_email');
-            });
-        };
-
         // Try to authorize user with provided credentials.
         $scope.auth = function (action, user_info) {
             $http.post('/' + action, user_info)
                 .success(function () {
-                    loginModal.hide();
-
                     $window.location = '/configuration/clusters';
                 })
-                .error(function (data, status) {
+                .error(function (err, status) {
                     if (status == 403) {
-                        loginModal.hide();
-
                         $window.location = '/password/reset';
                     }
+                    else if (action == 'login')
+                        $common.showPopoverMessage(undefined, undefined, 'login_user_email', err);
                     else
-                        $common.showError(data, 'top', '#errors-container');
+                        $common.showPopoverMessage(undefined, undefined, 'signup_user_email', err);
                 });
         };
 
@@ -1882,7 +1870,7 @@ controlCenterModule.controller('auth', [
                     $common.showInfo('Password successfully changed');
 
                     $scope.user_info = {email: data};
-                    $scope.login();
+                    $window.location = '/';
                 })
                 .error(function (data, state) {
                     $common.showError(data);

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/public/stylesheets/style.scss
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/public/stylesheets/style.scss b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
index 6410f7b..c5bd9f6 100644
--- a/modules/control-center-web/src/main/js/public/stylesheets/style.scss
+++ b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
@@ -323,16 +323,16 @@ h1, h2, h3, h4, h5, h6 {
     }
 }
 
-.modal-body {
+.login-footer {
+    @extend .modal-footer;
+
     margin-left: 20px;
     margin-right: 20px;
 }
 
-.block-display-image img {
-    max-width: 100%;
-    max-height: 450px;
-    margin: auto;
-    display: block;
+.modal-body {
+    margin-left: 20px;
+    margin-right: 20px;
 }
 
 .greedy {
@@ -1255,6 +1255,12 @@ a {
     }
 }
 
+.modal-advanced-options {
+    @extend .advanced-options;
+    margin-top: 10px;
+    margin-bottom: 10px;
+}
+
 .margin-left-dflt {
     margin-left: 10px;
 }

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/views/includes/controls.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/includes/controls.jade b/modules/control-center-web/src/main/js/views/includes/controls.jade
index 96e7bda..8bd3ad0 100644
--- a/modules/control-center-web/src/main/js/views/includes/controls.jade
+++ b/modules/control-center-web/src/main/js/views/includes/controls.jade
@@ -15,19 +15,20 @@
     limitations under the License.
 
 mixin block-callout(workflowTitle, workflowContent, whatsNextTitle, whatsNextContent)
-    table.block-callout-parent
-        tbody
-            tr(height='100%')
-                td.block-callout-left(width='50%')
-                    i.fa.fa-check-square.block-callout-header-left
-                    label.block-callout-header-left #{workflowTitle}
-                    ul
-                        li(ng-repeat='item in #{workflowContent}' ng-bind='item')
-                td.block-callout-right(width='50%')
-                    i.fa.fa-check-square.block-callout-header-right
-                    label.block-callout-header-right #{whatsNextTitle}
-                    ul
-                        li(ng-repeat='item in #{whatsNextContent}' ng-bind-html='item')
+    .block-callout-parent
+        table
+            tbody
+                tr(height='100%')
+                    td.block-callout-left(width='50%')
+                        i.fa.fa-check-square.block-callout-header-left
+                        label.block-callout-header-left #{workflowTitle}
+                        ul
+                            li(ng-repeat='item in #{workflowContent}' ng-bind='item')
+                    td.block-callout-right(width='50%')
+                        i.fa.fa-check-square.block-callout-header-right
+                        label.block-callout-header-right #{whatsNextTitle}
+                        ul
+                            li(ng-repeat='item in #{whatsNextContent}' ng-bind-html='item')
 
 mixin tipField(lines)
     i.tipField.fa.fa-question-circle(ng-if=lines bs-tooltip='joinTip(#{lines})' type='button')

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/views/includes/header.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/includes/header.jade b/modules/control-center-web/src/main/js/views/includes/header.jade
index 2c78d8f..368f61a 100644
--- a/modules/control-center-web/src/main/js/views/includes/header.jade
+++ b/modules/control-center-web/src/main/js/views/includes/header.jade
@@ -39,4 +39,4 @@ header#header.header
                     a.dropdown-toggle(data-toggle='dropdown' ng-class='{active: isActive("/profile") || isActive("/admin")}' bs-dropdown='userDropdown' data-placement='bottom-right') {{user.username}}
                         span.caret
                 li.nav-login(ng-if='!user')
-                    a(ng-click='login()') Log In
+                    a(href='/') Log In

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/views/index.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/index.jade b/modules/control-center-web/src/main/js/views/index.jade
index 999c4f8..6465672 100644
--- a/modules/control-center-web/src/main/js/views/index.jade
+++ b/modules/control-center-web/src/main/js/views/index.jade
@@ -16,15 +16,65 @@
 
 extends templates/layout
 
+mixin lbl(txt)
+    label.col-xs-5.col-sm-4.required #{txt}
+
 block container
-    .row
+    .row(ng-controller='auth')
+        .docs-header
+            h1
+                | Apache Ignite Web Console
         .docs-content
-            div
-                p
-                    | Apache Ignite<sup>tm</sup> In-Memory Data Fabric is a high-performance,
-                    | integrated and distributed in-memory platform for computing and transacting on large-scale data
-                    | sets in real-time, orders of magnitude faster than possible with traditional disk-based or flash technologies.
-        .block-image.block-display-image
-                img(ng-src='https://www.filepicker.io/api/file/lydEeGB6Rs9hwbpcQxiw' alt='Apache Ignite stack')
-        .text-center(ng-controller='auth')
-            button.btn.btn-primary(ng-click='login()' href='#') Configure Now
+            p Apache Ignite Web Console is utility for the configuration of Apache Ignite<sup>tm</sup> Grid.
+            p With Apache Ignite Web Console you can:
+            ul
+                li Create cluster configurations
+                li Load metadata from database
+                li Execute SQL queries
+        .col-xs-6.col-sm-6.col-md-6(ng-init='loginAction == "login"')
+            form(name='loginForm')
+                .modal-body.row
+                    .col-sm-10.col-sm-offset-1
+                        p(ng-show='loginAction == "password/forgot"')
+                            | That's ok! Simply enter your email below and a reset password link will be sent to you via email. You can then follow that link and select a new password.
+                        .details-row
+                            +lbl('Email:')
+                            .col-xs-7.col-sm-8
+                                input#login_user_email.form-control(enter-focus-next='login_user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='loginAction == "password/forgot" && loginForm.$valid && auth(loginAction, user_info)')
+                        .details-row(ng-show='loginAction != "password/forgot"')
+                            +lbl('Password:')
+                            .col-xs-7.col-sm-8
+                                input#login_user_password.form-control(type='password' ng-model='user_info.password' placeholder='Password' ng-required='loginAction != "password/forgot"' on-enter='loginAction == "login" && loginForm.$valid && auth(loginAction, user_info)')
+        .col-xs-6.col-sm-6.col-md-6
+            form(name='signupForm')
+                .modal-body.row
+                    .col-sm-10.col-sm-offset-1
+                        .details-row
+                            +lbl('Full Name:')
+                            .col-xs-7.col-sm-8
+                                input#signup_user_name.form-control(enter-focus-next='signup_user_email' type='text' ng-model='user_info.username' placeholder='John Smith' required)
+                        .details-row
+                            +lbl('Email:')
+                            .col-xs-7.col-sm-8
+                                input#signup_user_email.form-control(enter-focus-next='signup_user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='signupForm.$valid && auth("register", user_info)')
+                        .details-row
+                            +lbl('Password:')
+                            .col-xs-7.col-sm-8
+                                input#signup_user_password.form-control(enter-focus-next='signup_user_confirm' type='password' ng-model='user_info.password' placeholder='Password' required on-enter='signupForm.$valid && auth("register", user_info)')
+                        .details-row
+                            +lbl('Confirm:')
+                            .col-xs-7.col-sm-8
+                                input#signup_user_confirm.form-control(type='password' ng-model='user_info.confirm' match='user_info.password' placeholder='Confirm password' required on-enter='signupForm.$valid && auth("register", user_info)')
+        .col-xs-6.col-sm-6.col-md-6
+            .col-sm-10.col-sm-offset-1
+                .login-footer(ng-show='loginAction == "login"')
+                    a.labelField(ng-click='loginAction = "password/forgot"' on-click-focus='user_email') Forgot password?
+                    button.btn.btn-primary(ng-click='auth(loginAction, user_info)' ng-disabled='loginForm.$invalid') Log In
+                .login-footer(ng-show='loginAction == "password/forgot"')
+                    a.labelField(ng-click='loginAction = "login"' on-click-focus='user_email') Log In
+                    button.btn.btn-primary(ng-click='auth(loginAction, user_info)' ng-disabled='loginForm.$invalid') Send it to me
+        .col-xs-6.col-sm-6.col-md-6
+            .col-sm-10.col-sm-offset-1
+                .login-footer
+                    button#signup.btn.btn-primary(ng-click='auth("register", user_info)' ng-disabled='signupForm.$invalid') Sign In
+

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/views/login.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/login.jade b/modules/control-center-web/src/main/js/views/login.jade
deleted file mode 100644
index 5356c94..0000000
--- a/modules/control-center-web/src/main/js/views/login.jade
+++ /dev/null
@@ -1,62 +0,0 @@
-//-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You 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.
-
-mixin lbl(txt)
-    label.col-sm-3.required #{txt}
-
-.modal.center(role='dialog')
-    .modal-dialog
-        .modal-content
-            #errors-container.modal-header.header
-                button.close(type='button' ng-click='$hide()' aria-hidden='true') &times;
-                h1.navbar-brand
-                    a(href='/') Apache Ignite Web Configurator
-                h4.modal-title(style='padding-right: 55px') Authentication
-                p(style='padding-right: 55px') Log in or register in order to collaborate
-            form.form-horizontal(name='loginForm' ng-init='action == "login"')
-                .modal-body.row
-                    .col-sm-10.col-sm-offset-1
-                        p(ng-show='action == "password/forgot"')
-                            | That's ok! Simply enter your email below and a reset password link will be sent to you via email. You can then follow that link and select a new password.
-                        .details-row(ng-show='action == "register"')
-                            +lbl('Full Name:')
-                            .col-sm-9
-                                input#user_name.form-control(enter-focus-next='user_email' type='text' ng-model='user_info.username' placeholder='John Smith' ng-required='action=="register"')
-                        .details-row
-                            +lbl('Email:')
-                            .col-sm-9
-                                input#user_email.form-control(enter-focus-next='user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='action == "password/forgot" && loginForm.$valid && auth(action, user_info)')
-                        .details-row(ng-show='action != "password/forgot"')
-                            +lbl('Password:')
-                            .col-sm-9
-                                input#user_password.form-control(enter-focus-next='user_confirm' type='password' ng-model='user_info.password' placeholder='Password' ng-required='action != "password/forgot"' on-enter='action == "login" && loginForm.$valid && auth(action, user_info)')
-                        .details-row(ng-if='action == "register"')
-                            +lbl('Confirm:')
-                            .col-sm-9
-                                input#user_confirm.form-control(type='password' ng-model='user_info.confirm' match='user_info.password' placeholder='Confirm password' ng-required='action == "register"' on-enter='loginForm.$valid && auth(action, user_info)')
-            .modal-footer(ng-show='action == "register"')
-                a.labelField(ng-click='action = "password/forgot"' on-click-focus='user_email') Forgot password?
-                a.labelLogin(ng-click='action = "login"' on-click-focus='user_email') Log In
-                button#signup.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Sign Up
-
-            .modal-footer(ng-show='action == "password/forgot"')
-                a.labelField(ng-click='action = "login"' on-click-focus='user_email') Log In
-                button#forgot.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Send it to me
-
-            .modal-footer(ng-show='action == "login"')
-                a.labelField(ng-click='action = "password/forgot"' on-click-focus='user_email') Forgot password?
-                a.labelLogin(ng-click='action = "register"' on-click-focus='user_name') Sign Up
-                button#login.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Log In

http://git-wip-us.apache.org/repos/asf/ignite/blob/882b4791/modules/control-center-web/src/main/js/views/templates/agent-download.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/templates/agent-download.jade b/modules/control-center-web/src/main/js/views/templates/agent-download.jade
index ddd3890..082c551 100644
--- a/modules/control-center-web/src/main/js/views/templates/agent-download.jade
+++ b/modules/control-center-web/src/main/js/views/templates/agent-download.jade
@@ -36,7 +36,7 @@
                     li Refer to&nbsp;
                         b README.txt
                         | &nbsp;for more information.
-                .advanced-options
+                .modal-advanced-options
                     i.fa.fa-chevron-circle-up(ng-show='agentLoad.showToken' ng-click='agentLoad.showToken = ! agentLoad.showToken')
                     i.fa.fa-chevron-circle-down(ng-show='!agentLoad.showToken' ng-click='agentLoad.showToken = ! agentLoad.showToken')
                     a(ng-click='agentLoad.showToken = ! agentLoad.showToken') {{agentLoad.showToken ? 'Hide security token...' : 'Show security token...'}}