Changeset 12435 for trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp
- Timestamp:
- 06/12/15 14:59:54 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/app.css
r12428 r12435 79 79 80 80 #menu { 81 position: absolute; 82 min-height: inherit; 83 width: 250px; 81 position: relative; 84 82 background: #FAFAFA; 85 83 display: block; 86 84 overflow: hidden; 87 border-right: 1px solid #D3D3D3; 85 z-index: 10000; 86 width: 100%; 88 87 } 89 88 … … 101 100 #view { 102 101 position: relative; 103 left: 0 px;104 margin-left: 250px;102 left: 0; 103 margin-left: 0px; 105 104 display: block; 106 105 overflow: hidden; 107 106 } 107 108 108 109 109 .view-header { … … 124 124 } 125 125 126 .navbar-header {127 width: 250px;126 .navbar-header { 127 width: 100%; 128 128 background: #3c3a39; 129 129 color: #FFFFFF; 130 float: left; 131 } 132 133 134 @media (min-width: 768px) { 135 #view { 136 margin-left: 250px; 137 } 138 139 #menu { 140 visibility: visible; 141 position: absolute; 142 width: 250px; 143 min-height: inherit; 144 border-right: 1px solid #D3D3D3; 145 z-index: 0; 146 } 147 148 .navbar-header { 149 width: 250px; 150 } 151 } 152 .container-fluid .navbar-header { 153 margin: 0; 154 padding: 0; 155 } 156 157 .navbar-nav { 158 margin: 0; 159 padding: 0; 160 } 161 162 .navbar-right { 163 float: right!important 164 } 165 166 .navbar-nav>li>a { 167 padding-top: 15px; 168 padding-bottom: 15px; 169 } 170 171 .navbar-content { 172 padding-right: 15px; 173 } 174 175 .navbar-nav > li { 176 float: left; 130 177 } 131 178 … … 140 187 .nav-sidebar { 141 188 font-size: 12px; 189 padding-bottom: 30px; 142 190 } 143 191 … … 279 327 } 280 328 329 .table-no-border>thead>tr>th, 330 .table-no-border>tbody>tr>th, 331 .table-no-border>tfoot>tr>th, 332 .table-no-border>thead>tr>td, 333 .table-no-border>tbody>tr>td, 334 .table-no-border>tfoot>tr>td, 335 .table-no-border>tbody, 336 .table-no-border>thead, 337 .table-no-border>tfoot{ 338 border-top: none !important; 339 border-bottom: none !important; 340 } 341 342 .table-auto-width { 343 width: auto !important; 344 } 345 346 .center-element { 347 margin: 0 auto; 348 } 349 350 .table-content { 351 margin-bottom: 0; 352 } 281 353 282 354 #top-navbar { … … 311 383 312 384 .navbar-default .navbar-text { 385 display: block; 313 386 color: #ffffff; 314 387 text-shadow: none !important; 315 } 316 388 margin: 0; 389 padding: 15px; 390 } 391 392 .navbar-nav { 393 float:left; 394 margin:0 395 } 396 397 .navbar-nav>li { 398 float:left 399 } 400 401 .navbar-nav>li>a { 402 padding-top:15px; 403 padding-bottom:15px 404 } 405 406 .navbar-toggle { 407 border: none !important; 408 } 409 410 .navbar-toggle:focus { 411 background-color: transparent !important; 412 } 413 414 .navbar-toggle:hover { 415 background-color: #D3D3D3 !important; 416 } 417 418 #menu .navbar-collapse { 419 padding: 0; 420 margin: 0; 421 } 317 422 318 423 .default-view-container { 319 424 padding: 30px; 320 425 } 426 427 .panel-heading a:after { 428 font-family:'Glyphicons Halflings'; 429 content:"\e114"; 430 float: right; 431 color: grey; 432 } 433 .panel-heading a.collapsed:after { 434 content:"\e080"; 435 } 436 437 .panel-heading a:focus, a:hover { 438 text-decoration: none; 439 } -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/shared/directives/flot.js
r12428 r12435 6 6 link: function (scope, element, attrs) { 7 7 var chart = null, opts = scope[attrs.options]; 8 var div = null; 8 9 9 10 scope.$watchCollection(attrs.dataset, function (newData, oldData) { 10 11 if (!chart) { 11 vardiv = element.append("<div>");12 div = element.append("<div>"); 12 13 div.bind("plotselected", function (event, ranges) { 13 14 $.each(chart.getXAxes(), function (_, axis) { -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/shared/layout/layout.cshtml
r12428 r12435 1 @using HeuristicLab.Services.WebApp.Configs 1 @* HeuristicLab 2 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 3 * 4 * This file is part of HeuristicLab. 5 * 6 * HeuristicLab is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * HeuristicLab is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 18 *@ 19 20 @using HeuristicLab.Services.WebApp.Configs 2 21 <!DOCTYPE html> 3 22 <html lang="en" ng-app="app"> … … 15 34 <![endif]--> 16 35 @Scripts.Render("~/Bundles/Vendors/js") 17 @ {18 BundleTable.EnableOptimizations = false;36 @foreach (var script in BundleConfig.GetWebAppScripts()) { 37 <script src="@script"></script> 19 38 } 20 @Scripts.Render("~/Bundles/WebApp/js") 21 @{ 22 BundleTable.EnableOptimizations = true; 23 } 39 40 @Scripts.Render("~/Bundles/WebApp/Shared") 24 41 </head> 25 <body> 26 <div id="app"> 27 <header id="toolbar" class="navbar navbar-default navbar-static-top no-border no-padding-margin" 28 ng-controller="app.menu.ctrl"> 29 <nav> 30 <div class="container-fluid"> 31 <div class="navbar-header"> 32 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar"> 42 <body ngcloak> 43 <div id="app"> 44 <header id="toolbar" class="navbar navbar-default navbar-static-top no-border no-padding-margin" 45 ng-controller="app.menu.ctrl"> 46 <nav> 47 <div class="container-fluid"> 48 <div class="navbar-header"> 49 <div class="center-block"> 50 <a class="navbar-brand" href="#"> 51 <img src="~/WebApp/shared/images/HeuristicLab-Logo.png" style="float: left; height: 100%; margin-right: 5px;"/> 52 <span style="color: #f7921d">HeuristicLab</span> 53 </a> 54 <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#menu .navbar-collapse"> 33 55 <span class="sr-only">Toggle navigation</span> 34 56 <span class="icon-bar"></span> … … 36 58 <span class="icon-bar"></span> 37 59 </button> 38 <a class="navbar-brand" href="#">39 <img src="~/WebApp/shared/images/HeuristicLab-Logo.png" style="float: left; height: 100%; margin-left: 25px; margin-right: 5px;" />40 Heuristic<span style="color: #f7921d">Lab</span>41 </a>42 </div>43 44 <div class="collapse navbar-collapse" id="top-navbar">45 <ul class="nav navbar-nav navbar-right">46 @if (Request.IsAuthenticated) {47 <li>48 <p class="navbar-text">Hello @User.Identity.Name!</p>49 </li>50 <li>51 <a ng-href="" data-ng-click="logout()">Logout</a>52 </li>53 } else {54 <li>55 <a ng-href="#/login">Login</a>56 </li>57 }58 </ul>59 60 </div> 60 61 </div> 61 </nav>62 </header>63 62 64 <aside id="menu" ng-controller="app.menu.ctrl"> 63 <div class="navbar-content"> 64 <ul class="nav navbar-nav navbar-right"> 65 @if (Request.IsAuthenticated) 66 { 67 <li> 68 <span class="navbar-text">Hello @User.Identity.Name!</span> 69 </li> 70 <li> 71 <a ng-href="" data-ng-click="logout()">Logout</a> 72 </li> 73 } 74 else 75 { 76 <li> 77 <a ng-href="#/login" data-ng-click="hideMenu()">Login</a> 78 </li> 79 } 80 </ul> 81 </div> 82 </div> 83 </nav> 84 </header> 85 86 <aside id="menu" ng-controller="app.menu.ctrl"> 87 <div class="navbar-collapse collapse"> 65 88 <ul class="nav nav-sidebar" 66 89 ng-include="'App/LoadSharedView?directory=menu&view=menu.cshtml&dateTime=@DateTime.Now'" 67 90 ng-init="entries = menuEntries;"></ul> 68 </aside> 91 </div> 92 </aside> 69 93 70 71 72 73 94 <section id="view"> 95 <ui-view/> 96 </section> 97 </div> 74 98 </body> 75 99 </html> -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/shared/menu/menu.cshtml
r12428 r12435 1 1 <li ng-repeat="section in entries" ng-class="{'category':section.isCategory === true, 'active': isActive(section.route)}"> 2 <a ng-href="{{section.route}}" ng-if="!section.isCategory"> 2 <a ng-href="{{section.route}}" ng-if="!section.isCategory" 3 data-toggle="collapse" data-target="#menu .navbar-collapse"> 3 4 <span ng-if="section.icon != ''" ng-class="section.icon" style="padding-right: 10px;"></span> 4 5 <span>{{section.name}}</span> -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/shared/menu/menuCtrl.js
r12428 r12435 27 27 }); 28 28 }; 29 30 $scope.hideMenu = function() { 31 $(".navbar-collapse").collapse('hide'); 32 }; 29 33 }] 30 34 );
Note: See TracChangeset
for help on using the changeset viewer.