Skip to main content
summaryrefslogtreecommitdiffstats
blob: dfc9dcda2a6cf1ad71f9ac38a1b211efe00b4c39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>

<head>
    <meta charset="ISO-8859-1">
    <title>Disposition</title>
    <link rel="stylesheet" href="/lib/css/bootstrap.min.css">
    <link rel="stylesheet" href="/lib/css/bootstrap-responsive.min.css">
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.min.css">
    <link href="css/user.css" rel="stylesheet">
    <link href="css/admin.css" rel="stylesheet">
</head>

<body ng-app="dispoApp">

    <nav ng-controller="mainController" class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#/user">Disposition</a>
            </div>
            <p class="navbar-text">Signed in as {{ cachedName }}</p>
            <div class="collapse navbar-collapse" ng-controller="HeaderController">
                <ul class="nav navbar-nav navbar-right">
                    <li ng-class="{ active: isActive('/user')}"><a href="#/user">User</a>
                    </li>
                    <li ng-class="{ active: isActive('/admin')}"><a href="#/admin">Admin</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div ng-view></div>

    <script>
        function HeaderController($scope, $location) {
            $scope.isActive = function(viewLocation) {
                return viewLocation === $location.path();
            };
        }
    </script>

    <script src="/lib/js/jquery-2.0.3.min.js"></script>
    <script src="/lib/js/angular.min.js"></script>
    <script src="/lib/js/angular-route.min.js"></script>
    <script src="/lib/js/angular-resource.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular-cookies.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.min.js"></script>
    <script src="/lib/js/bootstrap.min.js"></script>
    <script src="/lib/js/ui-bootstrap-tpls-0.11.0.min.js"></script>
    <script src="js/resizer.js"></script>
    <script src="js/dispoApp.js"></script>
    <script src="js/userController.js"></script>
    <script src="js/adminController.js"></script>
    <script src="js/mainController.js"></script>
</body>

</html>

Back to the top