Matteo Scandolo | 500e4c4 | 2017-08-08 13:05:24 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 86bc26a | 2017-01-18 11:06:47 -0800 | [diff] [blame] | 19 | <!-- 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 Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 29 | |
| 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 Scandolo | a8a6fbb | 2016-12-21 16:59:08 -0800 | [diff] [blame] | 38 | <img class="img-responsive" ng-src="{{vm.getLogo()}}" alt=""> |
| 39 | <span>v.{{vm.version}}</span> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 40 | </a> |
| 41 | </div> |
| 42 | <div id="navbar" class="navbar-collapse collapse"> |
| 43 | <minimaliza-menu></minimaliza-menu> |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 44 | <form class="navbar-form navbar-left"> |
| 45 | <input |
| 46 | type="text" |
| 47 | class="form-control" |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 48 | placeholder="Navigate routes (press 'f' to select)" |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 49 | style="width: 275px" |
| 50 | ng-model="vm.query" |
Matteo Scandolo | 86bc26a | 2017-01-18 11:06:47 -0800 | [diff] [blame] | 51 | uib-typeahead="state for state in vm.search($viewValue) | limitTo:30" |
| 52 | typeahead-template-url="customTemplate.html" |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 53 | typeahead-on-select="vm.routeSelected($item, $model, $label)"> |
| 54 | </form> |
Matteo Scandolo | d3cd3b1 | 2018-03-22 16:59:48 -0700 | [diff] [blame^] | 55 | <div class="nav navbar-nav navbar-right"> |
| 56 | <div class="btn-group" uib-dropdown is-open="status.isopen"> |
| 57 | <a id="single-button" class="btn btn-accent" uib-dropdown-toggle> |
| 58 | Service Status <span class="caret"></span> |
| 59 | </a> |
| 60 | <div class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button"> |
| 61 | <service-status></service-status> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 65 | </div> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 66 | </div> |
Max Chu | c5eb27e | 2017-11-01 17:47:29 -0700 | [diff] [blame] | 67 | </nav> |
| 68 | |