[12435] | 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
|
---|
[12428] | 21 | <!DOCTYPE html>
|
---|
| 22 | <html lang="en" ng-app="app">
|
---|
| 23 | <head>
|
---|
| 24 | <meta charset="utf-8" />
|
---|
| 25 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
---|
[12878] | 26 | <meta http-equiv="pragma" content="no-cache" />
|
---|
[12428] | 27 | <title>HeuristicLab Hive</title>
|
---|
| 28 | <link href="~/WebApp/HeuristicLab.ico" rel="shortcut icon" type="image/x-icon" />
|
---|
| 29 | @Styles.Render("~/Bundles/Vendors/css")
|
---|
| 30 | @Styles.Render("~/Bundles/WebApp/css")
|
---|
[12878] | 31 | <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
|
---|
[12428] | 32 | <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
---|
| 33 | <!--[if lt IE 9]>
|
---|
| 34 | @Scripts.Render("~/Bundles/IESupport")
|
---|
| 35 | <![endif]-->
|
---|
| 36 | @Scripts.Render("~/Bundles/Vendors/js")
|
---|
[12435] | 37 | @foreach (var script in BundleConfig.GetWebAppScripts()) {
|
---|
| 38 | <script src="@script"></script>
|
---|
[12428] | 39 | }
|
---|
[12435] | 40 |
|
---|
| 41 | @Scripts.Render("~/Bundles/WebApp/Shared")
|
---|
[12428] | 42 | </head>
|
---|
[12435] | 43 | <body ngcloak>
|
---|
| 44 | <div id="app">
|
---|
| 45 | <header id="toolbar" class="navbar navbar-default navbar-static-top no-border no-padding-margin"
|
---|
| 46 | ng-controller="app.menu.ctrl">
|
---|
| 47 | <nav>
|
---|
| 48 | <div class="container-fluid">
|
---|
| 49 | <div class="navbar-header">
|
---|
| 50 | <div class="center-block">
|
---|
| 51 | <a class="navbar-brand" href="#">
|
---|
| 52 | <img src="~/WebApp/shared/images/HeuristicLab-Logo.png" style="float: left; height: 100%; margin-right: 5px;"/>
|
---|
| 53 | <span style="color: #f7921d">HeuristicLab</span>
|
---|
| 54 | </a>
|
---|
| 55 | <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#menu .navbar-collapse">
|
---|
[12428] | 56 | <span class="sr-only">Toggle navigation</span>
|
---|
| 57 | <span class="icon-bar"></span>
|
---|
| 58 | <span class="icon-bar"></span>
|
---|
| 59 | <span class="icon-bar"></span>
|
---|
| 60 | </button>
|
---|
| 61 | </div>
|
---|
[12435] | 62 | </div>
|
---|
[12428] | 63 |
|
---|
[12435] | 64 | <div class="navbar-content">
|
---|
| 65 | <ul class="nav navbar-nav navbar-right">
|
---|
[12878] | 66 | @if (Request.IsAuthenticated) {
|
---|
[12435] | 67 | <li>
|
---|
| 68 | <span class="navbar-text">Hello @User.Identity.Name!</span>
|
---|
| 69 | </li>
|
---|
| 70 | <li>
|
---|
[12878] | 71 | <a ng-href="#" data-ng-click="logout()">Logout</a>
|
---|
[12435] | 72 | </li>
|
---|
[12878] | 73 | } else {
|
---|
[12435] | 74 | <li>
|
---|
| 75 | <a ng-href="#/login" data-ng-click="hideMenu()">Login</a>
|
---|
| 76 | </li>
|
---|
| 77 | }
|
---|
| 78 | </ul>
|
---|
[12428] | 79 | </div>
|
---|
[12435] | 80 | </div>
|
---|
| 81 | </nav>
|
---|
| 82 | </header>
|
---|
[12428] | 83 |
|
---|
[12435] | 84 | <aside id="menu" ng-controller="app.menu.ctrl">
|
---|
| 85 | <div class="navbar-collapse collapse">
|
---|
[12428] | 86 | <ul class="nav nav-sidebar"
|
---|
| 87 | ng-include="'App/LoadSharedView?directory=menu&view=menu.cshtml&dateTime=@DateTime.Now'"
|
---|
| 88 | ng-init="entries = menuEntries;"></ul>
|
---|
[12435] | 89 | </div>
|
---|
| 90 | </aside>
|
---|
[12428] | 91 |
|
---|
[12435] | 92 | <section id="view">
|
---|
| 93 | <ui-view/>
|
---|
| 94 | </section>
|
---|
| 95 | </div>
|
---|
[12514] | 96 | <script type="text/javascript">
|
---|
[12878] | 97 | $('.navbar-collapse').on('click', 'li a', function () {
|
---|
| 98 | $('.navbar-collapse').collapse('hide');
|
---|
| 99 | });
|
---|
[12514] | 100 | </script>
|
---|
[12428] | 101 | </body>
|
---|
| 102 | </html>
|
---|