blob: 56cf7f10742a2cd5b204ea4297e4244fa8072d09 [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>
</div>
</nav>