Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/WebApp/shared/layout/layout.cshtml @ 12419

Last change on this file since 12419 was 12419, checked in by dglaser, 9 years ago

#2388: Added WebApp and WebApp.Status plugin

File size: 3.1 KB
Line 
1<!DOCTYPE html>
2<html lang="en" ng-app="app">
3<head>
4    <meta charset="utf-8" />
5    <meta name="viewport" content="width=device-width, initial-scale=1">
6    <title>HeuristicLab Hive</title>
7    <link href="~/WebApp/HeuristicLab.ico" rel="shortcut icon" type="image/x-icon" />
8    @Styles.Render("~/Bundles/Vendors/css")
9    @Styles.Render("~/Bundles/WebApp/css")
10    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
11    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
12    <!--[if lt IE 9]>
13        @Scripts.Render("~/Bundles/IESupport")
14    <![endif]-->
15    @Scripts.Render("~/Bundles/Vendors/js")
16    @{
17        BundleTable.EnableOptimizations = false;
18    }
19    @Scripts.Render("~/Bundles/WebApp/js")
20    @{
21        BundleTable.EnableOptimizations = true;
22    }
23</head>
24<body>
25    <div id="app">
26        <header id="toolbar" class="navbar navbar-default navbar-static-top no-border no-padding-margin"
27                ng-controller="app.menu">
28            <nav>
29                <div class="container-fluid">
30                    <div class="navbar-header">
31                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar">
32                            <span class="sr-only">Toggle navigation</span>
33                            <span class="icon-bar"></span>
34                            <span class="icon-bar"></span>
35                            <span class="icon-bar"></span>
36                        </button>
37                        <a class="navbar-brand" href="#">
38                            <img src="~/WebApp/shared/images/HeuristicLab-Logo.png" style="float: left; height: 100%; margin-left: 25px; margin-right: 5px;" />
39                            Heuristic<span style="color: #f7921d">Lab</span>
40                        </a>
41                    </div>
42
43                    <div class="collapse navbar-collapse" id="top-navbar">
44                        <ul class="nav navbar-nav navbar-right">
45                            @if (Request.IsAuthenticated) {
46                                <li>
47                                    <p class="navbar-text">Hello @User.Identity.Name!</p>
48                                </li>
49                                <li>
50                                    <a ng-href="" data-ng-click="logout()">Logout</a>
51                                </li>
52                            } else {
53                                <li>
54                                    <a ng-href="#/login">Login</a>
55                                </li>
56                            }
57                        </ul>
58                    </div>
59                </div>
60            </nav>
61        </header>
62
63        <aside id="menu" ng-controller="app.menu">
64            <ul class="nav nav-sidebar"
65                ng-include="'App/LoadSharedView?directory=menu&view=menu.cshtml&dateTime=@DateTime.Now'"
66                ng-init="entries = menuEntries;"></ul>
67        </aside>
68
69        <section id="view">
70            <ui-view/>
71        </section>
72    </div>
73</body>
74</html>
Note: See TracBrowser for help on using the repository browser.