Added application-APPNAME class to body

This commit is contained in:
Rashid Khan 2014-02-28 13:08:06 -07:00
parent f7f16d6396
commit 8b7921e873
4 changed files with 17 additions and 35 deletions

View file

@ -12,19 +12,21 @@
<script>require(['kibana'], function () {});</script>
<link rel="stylesheet" href="kibana/styles/main.css" >
</head>
<body ng-controller="kibana">
<body ng-controller="kibana" ng-class="'application-'+activeApp">
<div class="content">
<nav class="navbar navbar-inverse navbar-static-top">
<ul class="nav navbar-nav">
<li ng-repeat="app in apps" ng-class="{active: activeApp == app.id}">
<a href="#/{{app.id}}">{{app.name}}</a>
</li>
</ul>
<ul class="nav navbar-nav pull-right">
<li>
<a ng-click="configure()"><i class="fa fa-gear"></i></a>
</li>
</ul>
<div class="container-fluid">
<ul class="nav navbar-nav">
<li ng-repeat="app in apps" ng-class="{active: activeApp == app.id}">
<a href="#/{{app.id}}">{{app.name}}</a>
</li>
</ul>
<ul class="nav navbar-nav pull-right">
<li>
<a ng-click="configure()"><i class="fa fa-gear"></i></a>
</li>
</ul>
</div>
</nav>
<config
config-template="configureTemplateUrl"
@ -33,8 +35,6 @@
</config>
<div class="application" kbn-view></div>
<!-- Required to be able to stretch the -->
<footer class="footer-fixed"></footer>
</div>
</body>
</html>

View file

@ -13,6 +13,10 @@ define(function (require) {
$scope.apps = configFile.apps;
$scope.activeApp = '';
$scope.$on('$locationChangeSuccess', function (event, uri) {
$scope.activeApp = uri.split('#')[1].split('/')[1];
});
$scope.opts = {
activeFetchInterval: void 0,
fetchIntervals: [

View file

@ -6842,16 +6842,6 @@ button.close {
body {
margin: 0px;
}
body div.content {
width: 100%;
position: absolute;
top: 0;
bottom: 0;
}
.footer-fixed {
position: absolute;
bottom: 0;
}
.navbar-nav li a {
cursor: pointer;
}

View file

@ -9,18 +9,6 @@ body {
margin: 0px;
}
body div.content {
width: 100%;
position: absolute;
top: 0;
bottom: 0;
}
.footer-fixed {
position:absolute;
bottom:0;
}
//== Subnav
//
// Use for adding a subnav to your app