diff --git a/zeppelin-web/src/app/home/home.controller.js b/zeppelin-web/src/app/home/home.controller.js index 14f15870e37..63410ce7234 100644 --- a/zeppelin-web/src/app/home/home.controller.js +++ b/zeppelin-web/src/app/home/home.controller.js @@ -71,4 +71,9 @@ angular.module('zeppelinWebApp').controller('HomeCtrl', function($scope, noteboo websocketMsgSrv.reloadAllNotesFromRepo(); $scope.isReloadingNotes = true; }; + + $scope.toggleFolderNode = function(node) { + node.hidden = !node.hidden; + }; + }); diff --git a/zeppelin-web/src/app/home/home.css b/zeppelin-web/src/app/home/home.css index 281ffb4168f..c37febc5266 100644 --- a/zeppelin-web/src/app/home/home.css +++ b/zeppelin-web/src/app/home/home.css @@ -151,6 +151,70 @@ a.navbar-brand:hover { font: normal normal normal 14px/1 FontAwesome; } +.dropdown-submenu { + position: relative; +} + +.dropdown-submenu a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333; + white-space: nowrap; + text-decoration: none; +} + +.dropdown-submenu a:hover { + background-color: #f5f5f5; +} + +.dropdown-submenu > .dropdown-menu { + top:0; + left:100%; + margin-top:-6px; + margin-left:-1px; + -webkit-border-radius:0 6px 6px 6px; + -moz-border-radius:0 6px 6px 6px; + border-radius:0 6px 6px 6px; +} +.dropdown-submenu:hover > .dropdown-menu { + display:block; +} +/* overwrite the style of the first element of dropdown-menu */ +.dropdown-submenu:hover > .dropdown-menu > li:first-child > a:hover { + color: #262626; + text-decoration: none; + background: #f5f5f5; +} +.dropdown-submenu > a:after { + display:block; + content:" "; + float:right; + width:0; + height:0; + border-color:transparent; + border-style:solid; + border-width:5px 0 5px 5px; + border-left-color:#cccccc; + margin-top:5px; + margin-right:-10px; +} +.dropdown-submenu:hover > a:after { + border-left-color:#ffffff; +} +.dropdown-submenu.pull-left { + float:none; +} +.dropdown-submenu.pull-left > .dropdown-menu { + left:-100%; + margin-left:10px; + -webkit-border-radius:6px 0 6px 6px; + -moz-border-radius:6px 0 6px 6px; + border-radius:6px 0 6px 6px; +} + @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #D3D3D3; @@ -199,6 +263,7 @@ a.navbar-brand:hover { #notebook-list { position: relative; overflow: hidden; + display: inline; } @media (min-width: 768px) { diff --git a/zeppelin-web/src/app/home/home.html b/zeppelin-web/src/app/home/home.html index 71a7a1ad7ad..7255f68914e 100644 --- a/zeppelin-web/src/app/home/home.html +++ b/zeppelin-web/src/app/home/home.html @@ -12,6 +12,24 @@ limitations under the License. --> + +
diff --git a/zeppelin-web/src/components/navbar/navbar.html b/zeppelin-web/src/components/navbar/navbar.html index bdc57901055..272167ae6cb 100644 --- a/zeppelin-web/src/components/navbar/navbar.html +++ b/zeppelin-web/src/components/navbar/navbar.html @@ -10,7 +10,19 @@ 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. ---> + --> + +