blob: 5249a3f5f54ac493dba561afc99e9e7ba7487d05 [file] [log] [blame]
Matteo Scandolo500e4c42017-08-08 13:05:24 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080019<!-- Custom template for Typeahead -->
20<script type="text/ng-template" id="customTemplate.html">
21 <a>
22 <span ng-bind-html="match.label.label | uibTypeaheadHighlight:query"></span>
23 <code class="pull-right">
24 {{match.label.type}}
25 </code>
26 </a>
27</script>
28<!-- END Custom template for Typeahead -->
Matteo Scandolo266907e2016-12-20 13:41:42 -080029
30<!-- Header -->
31<nav class="navbar navbar-default navbar-fixed-top">
32 <div class="container-fluid">
33 <div class="navbar-header">
34 <div id="mobile-menu">
35 <minimaliza-menu></minimaliza-menu>
36 </div>
37 <a class="navbar-brand" href="#/">
Matteo Scandoloa8a6fbb2016-12-21 16:59:08 -080038 <img class="img-responsive" ng-src="{{vm.getLogo()}}" alt="">
39 <span>v.{{vm.version}}</span>
Matteo Scandolo266907e2016-12-20 13:41:42 -080040 </a>
41 </div>
42 <div id="navbar" class="navbar-collapse collapse">
43 <minimaliza-menu></minimaliza-menu>
Matteo Scandolo67c105f2017-01-09 09:30:52 -080044 <form class="navbar-form navbar-left">
45 <input
46 type="text"
47 class="form-control"
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080048 placeholder="Navigate routes (press 'f' to select)"
Matteo Scandolo67c105f2017-01-09 09:30:52 -080049 style="width: 275px"
50 ng-model="vm.query"
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080051 uib-typeahead="state for state in vm.search($viewValue) | limitTo:30"
52 typeahead-template-url="customTemplate.html"
Matteo Scandolo67c105f2017-01-09 09:30:52 -080053 typeahead-on-select="vm.routeSelected($item, $model, $label)">
54 </form>
Matteo Scandolo266907e2016-12-20 13:41:42 -080055 <ul class="nav navbar-nav navbar-right">
56 <!--<li class="dropdown">-->
57 <!--<a ui-sref="main.versions">-->
58 <!--<i class="fa fa-bell"></i>-->
59 <!--<span ng-if="vm.newNotifications.length > 0" class="label label-warning pull-right">{{vm.newNotifications.length}}</span>-->
60 <!--</a>-->
61 <!--</li>-->
62 <li class=" profil-link">
63 <a ui-sref="commonviews.login">
Matteo Scandoloa8a6fbb2016-12-21 16:59:08 -080064 <span class="profile-address">{{vm.userEmail}}</span>
Matteo Scandolo266907e2016-12-20 13:41:42 -080065 <img src="../../images/profile.jpg" class="img-circle" alt="">
66 </a>
Matteo Scandolo63e43eb2016-12-14 14:18:53 -080067 </li>
68 </ul>
69 </div>
Matteo Scandolo266907e2016-12-20 13:41:42 -080070 </div>
71</nav>