blob: f41620449b8bce7c96ff85551f2745defd7e8f4f [file] [log] [blame]
<!--
Copyright 2017-present Open Networking Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Custom template for Typeahead -->
<script type="text/ng-template" id="customTemplate.html">
<a>
<span ng-bind-html="match.label.label | uibTypeaheadHighlight:query"></span>
<code class="pull-right">
{{match.label.type}}
</code>
</a>
</script>
<!-- END Custom template for Typeahead -->
<!-- Header -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<div id="mobile-menu">
<minimaliza-menu></minimaliza-menu>
</div>
<a class="navbar-brand" href="#/">
<img class="img-responsive" ng-src="{{vm.getLogo()}}" alt="">
<span>v.{{vm.version}}</span>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<minimaliza-menu></minimaliza-menu>
<form class="navbar-form navbar-left">
<input
type="text"
class="form-control"
placeholder="Navigate routes (press 'f' to select)"
style="width: 275px"
ng-model="vm.query"
uib-typeahead="state for state in vm.search($viewValue) | limitTo:30"
typeahead-template-url="customTemplate.html"
typeahead-on-select="vm.routeSelected($item, $model, $label)">
</form>
<div class="nav navbar-nav navbar-right">
<div class="btn-group" uib-dropdown is-open="status.isopen">
<a id="single-button" class="btn btn-accent" uib-dropdown-toggle>
Service Status <span class="caret"></span>
</a>
<div class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">
<service-status></service-status>
</div>
</div>
</div>
</div>
</div>
</nav>